This is a migrated thread and some comments may be shown as answers.

Dynamically load Menu with Angular ng-repeat

3 Answers 249 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Graham
Top achievements
Rank 1
Graham asked on 25 Feb 2016, 07:29 PM

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?

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 29 Feb 2016, 08:03 AM
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!
 
0
Graham
Top achievements
Rank 1
answered on 01 Mar 2016, 04:06 AM

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.

0
Petyo
Telerik team
answered on 03 Mar 2016, 08:06 AM
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!
 
Tags
Menu
Asked by
Graham
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Graham
Top achievements
Rank 1
Share this question
or