Skip to content

Commit 2fcb844

Browse files
committed
fix(sample): Contacts menu button not staying active when navigating to detail states. Need to use ngClass in this instance.
1 parent d9f7b89 commit 2fcb844

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sample/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<!-- Here you can see ui-sref in action again. Also notice the use of $state.includes, which
4040
will set the links to 'active' if, for example on the first link, 'contacts' or any of
4141
its descendant states are activated. -->
42-
<li ui-sref-active="active"><a ui-sref="contacts.list">Contacts</a></li>
42+
<li ng-class="{active: $state.includes('contacts')}"><a ui-sref="contacts.list">Contacts</a></li>
4343
<li ui-sref-active="active"><a ui-sref="about">About</a></li>
4444
</ul>
4545

0 commit comments

Comments
 (0)