Answers for "how to get router link in angular"

3

call a function whenever routerlink is clicke angular

<a class="nav-link" [routerLink]="['/home']" (click)="doSomeLogic()">Home</a>
Posted by: Guest on July-09-2020
3

angular get current route

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language