get active route angular code example
Example 1: angular get current route
this.router.url === '/login'
Example 2: angular check active route
<a [routerLink]="['/home']" routerLinkActive="is-active">Home</a>
<!-- More than one class: -->
<a [routerLink]="['/home']" [routerLinkActive]="['is-active']">Home</a>