Answers for "router link params"

10

vue router push

//Syntax - this.$router.push(path);
this.$router.push("/path");
Posted by: Guest on May-11-2020
0

router link with params

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language