I have implemented the menu link using AngularJS and UI-Router.
<li ui-sref-active="active">
<a ui-sref="dashboard" title="Dashboard"><i class="fa fa-lg fa-fw fa-home"></i> <span class="menu-item-parent">Dashboard</span></a>
</li>
Even though it worked successfully, when I navigate to a sub state like dashboard.view, the link does not remain active.
You can see this behavior by visiting the following URLs:
In http://angular-ui.github.io/ui-router/sample/#/contacts, the contact tab is marked as active. However, in http://angular-ui.github.io/ui-router/sample/#/contacts/1, the contact tab is not considered active.
So how can I create an HTML link that stays active for nested states?