angular / router

The Angular 1 Component Router
MIT License
665 stars 135 forks source link

Does the component router support [routerLink] and router-link-active #409

Open nareshbhatia opened 8 years ago

nareshbhatia commented 8 years ago

I am able to make the following code work to highlight the selected anchor tag in Angular 2:

<nav class="navbar">
  <a [routerLink]="['Dashboard']">DASHBOARD</a>
  <a [routerLink]="['Portfolio']">PORTFOLIO</a>
</nav>
.navbar a.router-link-active {
  color: $color-brand;
}

However these directives do not seem to work in Angular 1? Are these supported? If not, what's the easiest way to support this functionality in Angular 1?

P.S. Posted the same question on SO but no response so far.

mikkelrd commented 8 years ago

:+1: