Skip to content

Commit c79d00f

Browse files
committed
Merge pull request #1177 from sroe/patch-1
chore(sample): Restore comment in .run function call
2 parents 46de321 + e82a53f commit c79d00f

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)