Hi, I must be missing something, from what I can see the promise, when resolved, allow the view to render (ng-view), but the rest of the process is still working. --- I just make a fork of your example, in order to test this a bit more. It's quite interesting as I wasn't aware that removing ng-view will prevent the controller liked to the route to load. Now it's seems quite obvious, but I never thought about this. Thanks for showing me this.
But it's still not match my requirements, except if I change my resolves. Here is the fork I made : plnkr <http://plnkr.co/edit/pqI9TCdRZ1PM3vx6gezX?p=preview> it's very close to yours, I just added a resolve option to the route. And this resolve is executed even if the view is not rendered. In order to check this, click on the second route, and you will this my new log in the console. My requirements is to be able to block the resolve process, because this resolve is making several parallels calls to the server. In the end, they might all be rejected if the session is not valid anymore, but I would prefer to make a single call when the application starts in order to check the session before any other calls are made. This way I can redirect the user to the login page in a very clean way (in my mind). What you show me is very interesting, and quite useful in many other case, I will probably use it in another project. But the previous plugins currently is what I need (or at least I hope so, I have not tried it yet), a pre-process before loading the application at all. In fact it's like a double bootstrap, and that's what I need. I will try this 'plugin' soon, and will confirm here if it's really what I think it is. Thanks a lot for taking time to answers me. Best regards. Christophe -- 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.
