Reputation: 139
I know I can do this
this.router.navigate(["/user-reviews"], username, userId, {skipLocationChange: true})
and the url won't change if I'm coming from
http://localhost:4200/main
and using skipLocationChange, but what I want it to say is http://localhost:4200/user-reviews/bob
How do I do it so that it only hides the userId parameter, but not the username and still retains the new path user-reviews
instead of main
? Is this possible? I appreciate any help!
Upvotes: 0
Views: 604