I have discovered these errors are caused by the placeholder="Search" in both the view.html and also the config.defaultlocation.html views, if I remove them both then no errors occur?
I've tried to replicate and I've failed in two different sites; the test site that I use to test AGM (That is also included in the source code) and a real site I'm currently developing. Neither reproduce this issue.
I'm guessing that because the controller is not found in AngularJS, that no map is being displayed. Mighty peculiar.
Just so I understand, and to check there are no extra steps involved:-
You are correct, I didn't see your comment about placeholder before I submitted my comment.
Can't argue with the screencast, just no idea what is causing it.
Is it possible for you to edit line 4 of ~\App_Plugins\AngularGoogleMaps\2.0.1\config.defaultlocation.html to replace the placeholder attribute with ng-attr-placeholder as per this http://stackoverflow.com/a/37708786
Sadly right now, I am unable to replicate. A guess is that it might be some other package that is making AGM fall over. Do you have a list of packages you have installed so I can try and replicate ?
Good call, I found the conflict in the AzureLogger package which has a placeholder directive, I'm looking at a way of changing that now so it still works but doesn't conflict.
"Error: No controller: ngModel" when creating a data type with v2.0.1
Using Umbraco v7.4.3 and AngularMaps v2.0.1 when creating a new data type the error below is appearing in the js console.
The same error seems to be logged when using the editor in content.
Any ideas?
I have discovered these errors are caused by the
placeholder="Search"
in both theview.html
and also theconfig.defaultlocation.html
views, if I remove them both then no errors occur?Hi Jeavon,
I've tried to replicate and I've failed in two different sites; the test site that I use to test AGM (That is also included in the source code) and a real site I'm currently developing. Neither reproduce this issue.
I'm guessing that because the controller is not found in AngularJS, that no map is being displayed. Mighty peculiar.
Just so I understand, and to check there are no extra steps involved:-
Cheers
Jonathan
Hi Jonathan,
Correct, here is a screencast https://screencast-o-matic.com/watch/cDiO6diCzT
I have upgraded from v1.0.8 but this is creating a new datatype so shouldn't have any debris.
Did you see my note about removing the placeholder attributes?
Jeavon
Hi Jeavon,
You are correct, I didn't see your comment about placeholder before I submitted my comment.
Can't argue with the screencast, just no idea what is causing it.
Is it possible for you to edit line 4 of ~\App_Plugins\AngularGoogleMaps\2.0.1\config.defaultlocation.html to replace the placeholder attribute with ng-attr-placeholder as per this http://stackoverflow.com/a/37708786
Cheers
Hi Jonathan,
I'm afraid it threw the same error with ng-attr-placeholder.
Did you manage to replicate it at all or is it only me?
Jeavon
Hi Jeavon,
Sadly right now, I am unable to replicate. A guess is that it might be some other package that is making AGM fall over. Do you have a list of packages you have installed so I can try and replicate ?
Cheers
Good call, I found the conflict in the AzureLogger package which has a placeholder directive, I'm looking at a way of changing that now so it still works but doesn't conflict.
Thanks for you help here!
is working on a reply...