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 then have a service which is called from SomeContentCtrl that will listen for an event and upon such event I want to set the templateUrl for the header to null. Something like:
angular.module('RemoveTemplate',[]).factory('RemoveTemplate',['$window','$view','$state',functionRemoveTemplate($window,$view,$state){varwindowElem=angular.element($window);varlisten=function(){windowElem.on('RemoveTemplate',function(event){$view.load('header@base',{templateUrl: null});// Trying both, even tried without refreshing the state$state.reload();$state.go('wh.lobby');});};return{listen: listen};}]);});
But this doesn't seem to work. Is there a way of achieving this with Angular UI Router? If not is this something on the roadmap?
The text was updated successfully, but these errors were encountered:
I'm trying to change a parent view template on runtime - inside a service. I've looked at an issue which seems related: #379
My app config looks like:
I then have a service which is called from SomeContentCtrl that will listen for an event and upon such event I want to set the templateUrl for the header to null. Something like:
But this doesn't seem to work. Is there a way of achieving this with Angular UI Router? If not is this something on the roadmap?
The text was updated successfully, but these errors were encountered: