I am using a json file to show all the menus in my html page. I have applied menus in json file with right process. I am using angular to bind these menus to html page. All the main menus are displaying there. But the issue is when i click on submenu arrow, it is showing blank. Also only one menu item has submenu that is about us menu, but it is showing counter 1 to each menu item. The url to see how it is looking is dynamic menu using json angular
How to apply those submenu to only about us menu and how to display submenus when clicked on about us menu ?
my html code is
<nav id="menu" ng-app="demoApp" ng-controller="demoCtrl">
<ul id="my-list">
<li ng-repeat="menu in menus">
<a href="{{menu.url}}">
{{menu.name}}
</a>
<ul ng-show="menu.sub.length!=0">
<li ng-repeat="subItem in menu.sub">
<a href="{{subItem.url}}">{{subItem.name}}</a>
</li>
</ul>
</li>
</ul>
</nav>
Rest of the source you can find in given url.


menus.subandmenu.sub? do both objectsmenusandmenuhavesubproperty?