There is a code:
<uib-accordion-group ng-repeat="li in list"> <uib-accordion-heading> <a ng-click="active(li.name)" href="{{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> </uib-accordion-heading> <div> <ul class="childrenul"> <li ng-repeat="subitem in li.submenu">{{subitem}}</li> </ul> </div> </uib-accordion-group> </uib-accordion>
It is taken from the array. But the essence is in the other, he creates the accordion menu, but I need not all the points of the accordion, but only those that have child items, but it transforms everything. How can I do that?