I have parent menu with sub menus, but the accordion effect is not working for menus.(if second menu link clicks, automatically the first menu should close)
I have created the code in plunker,
http://plnkr.co/edit/yCO19F8f29tipZoM5uII?p=preview
view
<div id="sidebar-wrapper">
<ul class="panel sidebar-nav" ng-repeat="item in model | orderBy:'sortOrder'">
<li>
<a class="dropdown-toggle mainMenu menuArrow" href="javascript:void(0)" >{{item.description}}
<i class="sub_icon fa fa-lg fa-fw {item.iconTarget}}"></i>
</a>
<ul class="submenu" style="display: none;">
<li ng-repeat="subitem in item.children">
<a href="#{{subitem.target}}" class="subTitle"> {{subitem.description}} </a>
</li>
</ul>
</li>
</ul>
</div>
2
Answers
finally its working fine with small change,
back, (after a hard day…) and as promise :
better than
ng-Class
(like I said earlier), I suggest Angular UI (Twitter Bootstrap written natively in AngularJS)Next I let you apply your own css and move js in a file.