Dynamically load Menu with Angular ng-repeat

4 posts, 0 answers
  1. Graham
    Graham avatar
    5 posts
    Member since:
    Oct 2014

    Posted 25 Feb Link to this post

    I'd like to dynamically create my menus from an Angular $http/$resource call as they will be dynamic based on the user's profile.  However, I can't seem to get the Menu object to respond to anything I put into ng-repeat.

    Here's my test case:

    http://dojo.telerik.com/@pacific202/uSiqa/2

    The first one is a working menu with text and url's displayed properly.  The other three are various combinations of menus I'd like to build.

    Any tips on this?

  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 29 Feb Link to this post

    Hi,

    the problem you face is a common one. Details (and a workaround) are available in this help article

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Graham
    Graham avatar
    5 posts
    Member since:
    Oct 2014

    Posted 29 Feb in reply to Petyo Link to this post

    Thanks, Petyo.  I'll be implementing the DataSource workaround as described in that article.

    It would be great to link to that article in the Angular Menu documentation, and call out that ng-repeat isn't explicitly supported.

  5. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 03 Mar Link to this post

    Hi,

    thank you for the feedback. We will consider cross-referencing the help topic at the necessary places. 

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready