angular-promise-extras-extended
This is a fork of angular-promise-extras in order to improve semantic with isFulfilled and isRejected
Installation
WebPack
-
Install the package
npm install --save angular-promise-extras-extended
-
require
/import
angular-promise-extras
. -
Add the angular module
ngPromiseExtras
as a dependency of your application module.
Usage
var deferreds = $qdefer $qdefer var asyncVals = deferredsasyncVals $q deferreds0deferreds1
Also works with objects:
var deferreds = $qdefer $qdefer var promisesArray = deferredsvar promises = a: promisesArray0 b: promisesArray1 c: 3 $q deferreds0deferreds1
Also provides
$q.map
: works likeBluebird.map
orBluebird.props
depending on whether an array or an object is passed.$q.mapSettled
: Works like$q.map
but with the settled semantics.$q.resolve
: Works likeBluebird.resolve
.