$q.all() - Combining promises in AngularJS

Using $q.all() in AngularJS couldn't be simpler. $q is an Angular Service which facilitates running functions asynchronously. It's based on a library (Q) by Kris Kowal. $q.all() allows us to wait on an array (or object) of promises, $q.all() will combine these into a single promise. One Promise The returned promise abides by the following two rules: If one promise in the array fails, the combined promise fails If all promises succeed, »