Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

any-promise-angular

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

any-promise-angular

AnyPromise adapter for AngularJS

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

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

Keywords

promise

FAQs

Package last updated on 23 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts