any-promise-angular

AnyPromise adapter for AngularJS

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
any-promise-angular
000.1.18 years ago8 years agoMinified + gzip package size for any-promise-angular in KB

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);
}]);