You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder whether having templateUrls be interpreted relative to the state's url is such a good idea. I was really confused that when I was in a state with a url '/x/y' and I specified a template 'myTempl.html' that the template was being sought at '/x/y/myTempl.html'. I would think that given the way states' urls could be pretty much anywhere, you'd want the templateUrls to be relative to the appbase instead of the state's url... I think this only appears in html5 mode (which makes sense).
I know there's changes in how angular treats app base in the works: angular/angular.js#2969 ...I wonder how they'll impact ui-router in general, if at all.
The text was updated successfully, but these errors were encountered:
Hm, I didn't realize they were... ui-router doesn't do anything to the template URLs one way or another, they just get passed to $templateFactory and from there to $http. Possibly there have been some changes to how $router loads templates as part of the upstream app base changes that should be merged into $templateFactory.
I wonder whether having templateUrls be interpreted relative to the state's url is such a good idea. I was really confused that when I was in a state with a url '/x/y' and I specified a template 'myTempl.html' that the template was being sought at '/x/y/myTempl.html'. I would think that given the way states' urls could be pretty much anywhere, you'd want the templateUrls to be relative to the appbase instead of the state's url... I think this only appears in html5 mode (which makes sense).
I know there's changes in how angular treats app base in the works: angular/angular.js#2969 ...I wonder how they'll impact ui-router in general, if at all.
The text was updated successfully, but these errors were encountered: