I can\'t figure out a reasonable way, which doesn\'t feel like a hack, to solve this rather trivial problem.
I want a guest to see a splash page when they access the ind
For docs purposes, I used:
$rootScope.$on('$stateChangeStart', function(event, toState) { if ((toState.name !== 'login') && (!$localStorage.nickname)) { event.preventDefault(); $state.go('login'); } });
Using $routeChangeStart didn't work for me.
$routeChangeStart