Answers for "actual path router link"

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
0

angular absolute routerlink

/*
If the first segment begins with /, the router will look up the route from the root of the app.
If the first segment begins with ./, or doesn't begin with a slash, the router will instead look in the children of the current activated route.
And if the first segment begins with ../, the router will go up one level.
Posted by: Guest on October-24-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language