I have a navbar with two links:
<nav>
<a ng-link="['Route1']">Route 1</a>
<a ng-link="['Route2']">Route 2</a>
</nav>
I would like to highlight the link associated with the active route. Essentially, I would like to add a class called router-link-active
to one of the two links above. What's the easiest way to do this for the new Angular 1 Component Router?