Promisify services for AngularJS
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
src
testing
.gitignore
.jsbeautifyrc The initial implementation. Dec 15, 2014
.jshintrc
LICENSE
README.md Adding bower instructions to the readme. Dec 15, 2014
bower.json
gulpfile.js
package.json The initial implementation. Dec 15, 2014

README.md

This angular module aims to provide promisification services for AngularJS. At the moment the package provides one service called "denodeify" which is equivalent to Q.denodeify() but using $q.

Installation

You an install angular-promisify with Bower:

  bower install --save angular-promisify

You should then add denodeify.js (in dist/) to your scripts.

Usage Example:

angular.module('myApp', ['denodeify'])
  .factory('myService', ['denodeify', function(denodeify) {
    var denodeifiedFunction = denodeify(someNodeStyleFunction);

    denodeifiedFunction(someValue)
      .then(function(result) {
        // use the result
      })
      .then(null, function(error) {
        // catch the error
      });
  }]);