I have just shifted from Marionette.js to Angular. Right now I am creating one application where there is a login screen and home screen, I have two rest apis one for authentication and another one to check if user has active session or not(using tokens). If user has active session I want to redirect him to home screen.
How can I implement this in Angular in best way?
Thanks, MSK
Note: I am using yeoman/generator-angular and ui-router