I have a list and I\'d like to set one item as class=\"active\" automatically. Given the following bootstrap code:
-
A lot of these answers are outdated. Here is a much cleaner (and DRY) version for Bootstrap and Ember 2.x:
{{#link-to "index" tagName="li" as |link|}}
Index Page
{{/link-to}}