Skip to content

Instantly share code, notes, and snippets.

@jhammann
Created March 27, 2014 13:28
Show Gist options
  • Select an option

  • Save jhammann/9807556 to your computer and use it in GitHub Desktop.

Select an option

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.
{{#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