mercredi 8 avril 2015

Angular wait for promise in module.run

I'm working on an angular application and I'm using a service which should load some details from the server before the execution of the application is continued.



application.run(($myService)=>{
myService.loadSomething() //The application should pause until the execution of the Service
//is completed until this the browser shoudl stay in a "loading state"
});


Is sometehing like this even possible?





Aucun commentaire:

Enregistrer un commentaire