As a newcomer to angularJs, I am looking to create a dynamic menu with submenus using a .json file. It's important for me to be able to easily add new menus and submenus through the same .json document.
<a href="#" ng-repeat="item in menuHeader">{{item.NAV.menu[x].subItens[x].nome}} </a>
I believe this code snippet allows me to access elements within other elements, which is essential since I have multiple submenus and menus in mind. I initially attempted to use a For loop within the HTML template, but encountered some challenges. Can anyone offer guidance on how to resolve this issue or suggest an alternative approach?
Check out the demo here: CLICK HERE!
Thank you for your help!