Imagine that you have a parent menu with some child menus. For each child menu, you have something like this to add an active class:
ui-sref-active="active"
, . ui-router.
<li ng-class="{ active: state.includes('parentState') }">
.. :
$scope.state = $state;
ng-include, $state.include. html .