Open nareshbhatia opened 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.
:+1:
I am able to make the following code work to highlight the selected anchor tag in Angular 2:
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.