2.1.0 • Published 9 years ago
ng-q-plus v2.1.0
ng-q-plus
ng-q-plus is an angular module enhancing $q promises with additional features
angular.module 'app', [require('ng-q-plus')]
.service 'myService', ['$q', ($q) ->
$q.when a: 1
.get('a')
.then (value) ->
console.log value # = 1
]
API
The module can be required via browserify require, as an AMD module via requirejs or as a global, if window.angular is
present. It creates the angular module 'ng-q-plus' and exports its name. This module augments the existing
$q
service, it does not create a service of its own.
Each promise gets the new methods as defined in the ExtendedPromise class which can be found in the documentation.