I want to change my templateUrl dynamically, I've read Dynamic template URLs in Angular 2. Yes, I can change my template before the component initialize. But what I want is when I hit a button and the url change, then my html is update, like two way data binding.
I try make to my component like this:
templateUrl: (function() {
return dynamicURl;
}())
But when change the "dynamicUrl", not thing happened. I also use dynamicComponentLoader load my component again and component is not changed.