Created
March 27, 2014 13:28
-
-
Save jhammann/9807556 to your computer and use it in GitHub Desktop.
Ember adds an active class to every element which corresponds to the current route. I wanted to add an active class to the parent element because Bootstrap wants the active class on a list-item but the anchor is needed too for styling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {{#link-to "about" tagName="li" href="false"}}<a {{bind-attr href="view.href"}}>About</a>{{/link-to}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment