angular active router code example
Example: angular check active route
<a [routerLink]="['/home']" routerLinkActive="is-active">Home</a>
<!-- More than one class: -->
<a [routerLink]="['/home']" [routerLinkActive]="['is-active']">Home</a>
<a [routerLink]="['/home']" routerLinkActive="is-active">Home</a>
<!-- More than one class: -->
<a [routerLink]="['/home']" [routerLinkActive]="['is-active']">Home</a>