I need to reload the template when I do this.state.reload();
.
According to Angular Compiler documentation and this stackoverflow answer I should do compiler.clearCache();
but it doesn't seem to work. You can see from the Network tab of your browser that no new request is made after the initials.
I have also added templateUrl: 'templateUrl?v='+(new Date().getTime())
but template is loaded only the first time.
Plunkr using Angular v.4.2.5 and UIRouter v.1.0.0-beta.7
Any ideas how to accomplish this?
I also opened a github issue since this may be a bug.