Hello,

I want to build a medium sized application in witch a user session is 
automatically restored if it's still valid. In order to do so I'm saving 
data locally, then when application start I send the data to the server to 
check validity of the session. It works fine except when the session is not 
valid any more because. I would like to be able to check the session before 
any other calls are made to the server. Currently the call is made along 
with other route resolve calls. Is there a simple way to block all other 
calls until the first one is resolved ?

The only way I found to do this, would be to prefix every call with the 
first promise. But it's quite a big overload to the application I don't 
think this is the right way to do it.

Thanks a lot.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to