I am trying to redirect inside a ui-router resolve and wanted to know if there is a way to reroute in a router resolver. Currently this does not work as one would think.
I think a much cleaner answer is to return an already rejected promise like so:
resolver(auth, $state, $q){ if(!auth.isLoggedIn()){ $state.go('noLoggedInPath'); // Return rejected promise return $q.reject(); } return true; }