Skip to content

Commit

Permalink
fix(sample): Contacts menu button not staying active when navigating …
Browse files Browse the repository at this point in the history
…to detail states. Need to use ngClass in this instance.
  • Loading branch information
timkindberg committed Mar 3, 2014
1 parent d9f7b89 commit 2fcb844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<!-- Here you can see ui-sref in action again. Also notice the use of $state.includes, which
will set the links to 'active' if, for example on the first link, 'contacts' or any of
its descendant states are activated. -->
<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>
<li ui-sref-active="active"><a ui-sref="about">About</a></li>
</ul>

Expand Down

0 comments on commit 2fcb844

Please sign in to comment.