Arun Suresh
Results
1
comments of
Arun Suresh
An option using state: Before login: ``` $rootScope.$on('$stateChangeStart', function (event, next) { Auth.isLoggedIn(function (loggedIn) { if (next.authenticate && !loggedIn) { if ($location.url() != '/login') { $cookieStore.put('redirectState', next.name); } $location.path('/login'); }...