mercredi 30 septembre 2015

Wait for ApplicationRoute to resolve before going to a child route

To explain the issue I'm facing, I have 2 routes : ApplicationRoute and SomeRoute. I would need to wait for ApplicationRoute to resolve before trying to do something with SomeRoute.

The call order I see in debug :

ApplicationRoute.model // which returns a promise
SomeRoute.model
SomeRoute.setupController
ApplicationRoute.setupController

What I would want :

ApplicationRoute.model // which returns a promise
ApplicationRoute.setupController
SomeRoute.model
SomeRoute.setupController

There's probably a detail I'm missing somewhere...




Aucun commentaire:

Enregistrer un commentaire