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.
2 parents 46de321 + e82a53f commit c79d00fCopy full SHA for c79d00f
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