any-promise-angular

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i any-promise-angular

Weekly Downloads

21

Version

0.1.1

License

Apache-2

Last publish

Collaborators

  • theefer