Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Jul 26, 2016 @ 09:26
    Jeavon Leopold
    1

    "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.

    enter image description here

    The same error seems to be logged when using the editor in content.

    Any ideas?

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Jul 26, 2016 @ 10:00
    Jeavon Leopold
    1

    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?

  • Jonathan Richards 288 posts 1742 karma points MVP
    Jul 26, 2016 @ 10:41
    Jonathan Richards
    0

    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:-

    1. Install AGM version 2.0.1 using NuGet
    2. Go to Developer section
    3. Click Create new Datatype
    4. Select 'Angular Google Maps' as Property Editor.
    5. Bam you see you error ?

    Cheers

    Jonathan

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Jul 26, 2016 @ 10:51
    Jeavon Leopold
    1

    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

  • Jonathan Richards 288 posts 1742 karma points MVP
    Jul 26, 2016 @ 11:36
    Jonathan Richards
    0

    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

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Jul 26, 2016 @ 11:55
    Jeavon Leopold
    1

    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

  • Jonathan Richards 288 posts 1742 karma points MVP
    Jul 26, 2016 @ 14:04
    Jonathan Richards
    0

    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

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Jul 26, 2016 @ 15:24
    Jeavon Leopold
    0

    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!

Please Sign in or register to post replies

Write your reply to:

Draft