I am currently dealing with the following route:
http://localhost:96/#/pages/settings/devices
I am looking to add queryParams={name:realTime} to this existing route, like so:
http://localhost:96/#/pages/settings/devices?name=realTime
Can I manipulate the queryParams of the current route without causing a page reload?
I have found a solution for this particular scenario.
With this approach, the current page will not be reloaded:
let navigationExtra: NavigationExtras = {
relativeTo: this.activatedRoute,
skipLocationChange: false,
queryParams: { name: 'realTime' }
}
this.router.navigate(['./', navigationExtra]);