any-promise-angular
v0.1.1
Published
AnyPromise adapter for AngularJS
Downloads
183
Readme
AnyPromise adapter for AngularJS
AnyPromise adapter for the AngularJS framework.
Usage
This adapter is implemented as an ES6 module which can be installed with jspm and loaded via SystemJS as follows:
import 'any-promise-angular';
import angular from 'angular';
var mod = angular.module('example', ['anyPromise']);
mod.factory('exampleFactory', ['anyPromise', function(anyPromise) {
// use anyPromise, e.g.
return anyPromise.resolve(42);
}]);