I have this current route:
http://localhost:96/#/pages/settings/devices
I want to set queryParams={name:realTime} to this current route like:
http://localhost:96/#/pages/settings/devices?name=realTime
Is it possible to add or remove queryParams to the current route without reloading the page?
I got the solution for this.
This will not reload Current page
let navigationExtra: NavigationExtras = {
relativeTo: this.activatedRoute,
skipLocationChange: false,
queryParams: { name: 'realTime' }
}
this.router.navigate(['./', navigationExtra]);