I have an option to change a server url in the app (for internal testing purposes).
The problem is once the components have been instantiated by navigating to them, they dont initialize again, although it is desired (to call the new api).
I am looking for a way to either restart the application or to clear the router history whilst also clearing all instances of components instantiated by the router. This doesn't work for me:
this.router.navigate(['/'], { clearHistory: true });
It clears the history, but once the components have been instantiated, they dont get created again.