We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9f7b89 commit 2fcb844Copy full SHA for 2fcb844
sample/index.html
@@ -39,7 +39,7 @@
39
<!-- Here you can see ui-sref in action again. Also notice the use of $state.includes, which
40
will set the links to 'active' if, for example on the first link, 'contacts' or any of
41
its descendant states are activated. -->
42
- <li ui-sref-active="active"><a ui-sref="contacts.list">Contacts</a></li>
+ <li ng-class="{active: $state.includes('contacts')}"><a ui-sref="contacts.list">Contacts</a></li>
43
<li ui-sref-active="active"><a ui-sref="about">About</a></li>
44
</ul>
45
0 commit comments