$q.allSettled to angular $q.
$q.allfunction returns a promise for an array of values. When this promise is fulfilled, the array contains the fulfillment values of the original promises, in the same order as those promises. If one of the given promises is rejected, the returned promise is immediately rejected, not waiting for the rest of the batch. If you want to wait for all of the promises to either be fulfilled or rejected, you can use
bower install angular-q-extras --save npm install angular-q-extras --save
Require it into your application
Add the module as a dependency to your application
Typescript definitions are available on NPM : @types/angular-q-extras.
var promises =$q;$q;$q;;$q;
# setup npm install npm start npm test # publish npm login npm publish