Answers for "Angular get active route"

0

angular check active route

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

<!-- More than one class: -->
<a [routerLink]="['/home']" [routerLinkActive]="['is-active']">Home</a>
Posted by: Guest on May-18-2021
3

angular get current route

this.router.url === '/login'
Posted by: Guest on December-27-2020

Browse Popular Code Answers by Language