Answers for "pass params in route angular"

0

pass parameter in route angular

//pass params

this.router.navigate([`admin/showProduct/${catKey}/${subcat_key}/${key}`])

//get params 

  constructor(  private route:ActivatedRoute ) {
  
    this.catkey =this.route.snapshot.paramMap.get('catkey');
  }
Posted by: Guest on April-09-2022
2

router params angular

// Navigate and send Params
this.router.navigate(['/users/edit/', user.id]);
Posted by: Guest on November-25-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language