Here the scenario is that i have a header component where i have a selection box . on change of that selection i have to refresh the current page
example:
this seems not working for me
this.router.navigate([ document.location.pathname]);
Here the scenario is that i have a header component where i have a selection box . on change of that selection i have to refresh the current page
example:
this seems not working for me
this.router.navigate([ document.location.pathname]);
Copyright © 2021 Jogjafile Inc.
Refreshing the actual page is probably not what you want. I assume you just want to reload the data based on that selection. How do you know what is selected in the 1st place?
You should be using a common service that: