App initialization & user session


#1

Hi

I’ve a service to check if the user is already connected, and I’d like to call it on the app initialization BEFORE any controller, so I’ve put it in the $ionicPlatform.ready() call, but my controller is still called.

Is it possible to stop the controllers and wait for my service to respond before continue to execute the controller?

My Angular level is very low, maybe I didn’t used some best practices?

Thanks
Sylvain