The standard way to navigate to a route is
this.router.navigate(["/details", "30"] with the following route configuration:
{ path: "details/:id", component: TestRouteComponent } The constructor of my class would be
constructor(private router: Router, private route: ActivatedRoute) { } What I want to do is to just update the id of the current route.
Something like
this.route.params.id = 10; and then navigate to that route
this.router.navigate(this.route); Is that possible with angular routing?