Answers for "router link with params"

5

angular [routerlink]

content_copy
      
      <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}" fragment="education">
  link to user component
</a>
Posted by: Guest on March-06-2020
1

routerlink example

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

router link with params

<!-- Import in module... -->
imports: [
    RouterModule,
  	....
],
  
<!-- HTML -->
<button [routerLink]="['profile', user.id]"........
Posted by: Guest on March-22-2021
0

this.router.navigate

<a [routerLink]="['/', 'red-pill', {x: 'white-rabbit'}, 'neo']">
  Param!
</a>
Posted by: Guest on November-02-2020

Browse Popular Code Answers by Language