Passing data with data property (Routes) and State (Navigate)

Asked

Viewed 61 times

1

After a click on the button, I need to go to another route. And set the filter to return a certain data. I didn’t want to use queryParams, nor stop to not mess with the filter.

I use the navigate method. I need to set a value in the date property of the route. Is there a way? If it is not possible, from angular 7 the second parameter of the navigate method can be a "state" object and pass a value through it and you can recover this data in another component. But how to set a value in it, in another component?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.