Skip to content

Commit e82a53f

Browse files
committed
Restore comment in .run function call
In a previous version there was a example of how to use the $state inside a ng-class.
1 parent d6b95ef commit e82a53f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sample/app/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ angular.module('uiRouterSample', [
1313

1414
// It's very handy to add references to $state and $stateParams to the $rootScope
1515
// 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.
16+
// <li ng-class="{ active: $state.includes('contacts.list') }"> will set the <li>
17+
// to active whenever 'contacts.list' or one of its decendents is active.
1818
$rootScope.$state = $state;
1919
$rootScope.$stateParams = $stateParams;
2020
}

0 commit comments

Comments
 (0)