There is an accordion work menu:
<ul> <li ng-repeat="li in list"><a ng-click="li.clicked=!li.clicked;" ng-href="{{li.link === '#' ? '':li.link}}"><i class="fa" ng-class="li.icon"></i> {{li.name}}<i class="pull-right fa fa-angle-right" ng-show="li.submenu.length"></i></a> <ul class="childrenul" ng-class="{'show':li.clicked && li.submenu.length}"> <li ng-repeat="subitem in li.submenu">{{subitem}}</li> </ul> </li> </ul> But I would like to open only one tab, and now everything is open. How can this be implemented in ng-repeat?
listexample to the question , and generally the controller. Ideally, an example that can be run: either here in the snippet, or on Plunkr - Grundy