I want to dynamically change my urll pattern, I read Dynamic Pattern URLs in Angular 2 . Yes, I can change my template before initializing the component. But what I want is when I click the button and change the URL, then my html is updated as a two way data binding.
I am trying to make my component as follows:
templateUrl: (function() { return dynamicURl; }())
But when changing "dynamicUrl" nothing happened. I also use dynamicComponentLoader to load my component again, and the component does not change.
source share