Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

route not getting refresh with different id in angular

const id= this.route.snapshot.paramMap.get('id');
this.router.navigateByUrl('/departments', { skipLocationChange: true }).then(() => {
    this.router.navigate([`departments/${id}/employees`]);
});
 
PREVIOUS NEXT
Tagged: #route #refresh #id #angular
ADD COMMENT
Topic
Name
1+3 =