Angular Directive for Bootstrap Navigation. Checks the current value of $location and triggers active states on links.
bower install ks-active-link
angular
.module('yourApp', ['ks.activeLink']);
<li class="dropdown" ks-active-link active-class="active" active-path="/auth/login,/auth/signup">
Attribute | Input | Description |
---|---|---|
active-class | String | The value will be triggered on the directive's element. |
active-path | String, Array | Top level navigation, checks against the prefix of all routes. |
active-view | String, Array | Sub page navigation, checks against the suffix of all routes. |
...