blob: a1292b81fecaa9f288de73c9caa7eef7c44a9e12 [file] [log] [blame]
Matteo Scandolof6acdbe2016-12-13 10:29:37 -08001<div class="nav">
2 <ul>
Matteo Scandoloe0d71ea2016-12-19 11:56:12 -08003 <li
4 ng-repeat="route in vm.routes track by $index"
5 ui-sref-active="active"
6 ng-class="vm.isRouteActive(route)">
7 <a ng-if="route.state" ui-sref="{{route.state}}" ng-click="vm.activateRoute(route)">
8 <i ng-if="route.children" class="fa fa-chevron-right"></i>
9 {{route.label}}
10 </a>
11 <a ng-if="route.url" href="#/{{route.url}}" ng-click="vm.activateRoute(route)">
12 <i ng-if="route.children" class="fa fa-chevron-right"></i>
13 {{route.label}}
14 </a>
15 <ul class="child-routes" ng-if="route.children" ng-class="{opened: route.opened}">
16 <li ng-repeat="childRoute in route.children" ui-sref-active="active">
17 <a ng-if="childRoute.state" ui-sref="{{childRoute.state}}">{{childRoute.label}}</a>
18 <a ng-if="childRoute.url" href="#/{{childRoute.url}}">{{childRoute.label}}</a>
19 </li>
20 </ul>
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080021 </li>
22 </ul>
23</div>