Im using ui.router and turning on my navigation like this in my main html file:
<header ng-if-start="logedin()"></header> <navigation ng-if-end="logedin()"></navigation>
boolean logical logedin() will be set via angular.module().run() in this function:
$rootScope.$on('$stateChangeStart', function(e, to)
If I exit on one of the navigation systems, the navigation controller will run this function:
$scope.logout = function() { store.remove('jwt'); $state.go('login'); }
Problems after $state.go not hidden, but after page refresh.
Do I need to redraw the main template / index view (and then how)? Or how can I solve this problem?
javascript angularjs angular-ui-router
orgertot
source share