A simple link wrapper to wrap active links in an element that inherits the link's active class. Useful for e.g. bootstrap where the active class should be on the containing li
not on the a
.
Produces (roughly) the markup:
<li class='active'>
<a href="/" class='active'>Index</a>
</li>
You can change the tagName if you like, the default is li
:
<div class='active'>
<a href="/" class='active'>Index</a>
</div>
ember install:addon ember-cli-active-link-wrapper
ember server
- Visit tests at http://localhost:4200/tests.
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.