How to reload the current state in angular 2?

I have two different components: search string

and mail list

. I want to do the following behavior: when I pass text to the search bar and click on the search button, the state mail list

that has already been opened with the route, for expample .../mail-list/4

, should be completely reloaded, that is, the state should grab new data from the shared service that contains new search text for filtering mail.

I tried to use router.navegate([router.url])

but it has no effect.

+3


source to share





All Articles