Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

angular check active route

<a [routerLink]="['/home']" routerLinkActive="is-active">Home</a>

<!-- More than one class: -->
<a [routerLink]="['/home']" [routerLinkActive]="['is-active']">Home</a>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #angular #check #active #route
ADD COMMENT
Topic
Name
4+6 =