We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6b95ef commit e82a53fCopy full SHA for e82a53f
sample/app/app.js
@@ -13,8 +13,8 @@ angular.module('uiRouterSample', [
13
14
// It's very handy to add references to $state and $stateParams to the $rootScope
15
// so that you can access them from any scope within your applications.For example,
16
- // <li ui-sref-active="active }"> will set the <li> // to active whenever
17
- // 'contacts.list' or one of its decendents is active.
+ // <li ng-class="{ active: $state.includes('contacts.list') }"> will set the <li>
+ // to active whenever 'contacts.list' or one of its decendents is active.
18
$rootScope.$state = $state;
19
$rootScope.$stateParams = $stateParams;
20
}
0 commit comments