Angular: How to update queryParams without changing route

I am trying to update (add, remove) queryParams from a component. In angularJS, it used to be possible thanks to : $location.search(‘f’, ‘filters[]’); // setter $location.search()[‘filters[]’]; // getter I have an app with a list that the user can filter, order, etc and I would like to set in the queryParams of the url all … Read more

Send data through routing paths in Angular

Is there anyway to send data as parameter with router.navigate? I mean, something like this example, as you can see the route has a data parameter, but doing this it’s not working: this.router.navigate([“heroes”], {some-data: “othrData”}) because some-data is not a valid parameter. How can I do that? I don’t want to send the parameter with … Read more