Hi all
I have the following code but my expectation is that everything within the
then() function should be called *after *everything in the $q.all process
has returned, but its not doing this. My console log is being called
almost instantly after importFactory.functionOne is running.
$q.all([
importFactory.functionOne("import/one.xml"),
importFactory.functionTwo("import/two.xml"),
importFactory.functionThree("import/three.xml"),
importFactory.functionFour("import/four.xml")
]).then(function(){
console.log("ended:");
$rootScope.viewLoading = false;
});
Any ideas what I am doing wrong?
Cheers
Kris
--
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.