$q.all resolving immediately on a failure!
June 05, 2014
Oh, the madness. I spent most of the day figuring out why my batch of async requests was finishing abruptly when one request failed. Turns out it’s a feature of $q.all
.
The term all
is misleading in that case, isn’t it? I want all of my requests to finish before calling the callbacks.
Sigh. It’s probably time to add a new feature to my angular deferred library.
Hey, I'm Ian. I build websites and write about what I learn as I go. Follow me on Twitter.