🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

angular-async-chainable

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-async-chainable

Pre-built async-chainable NPM repo suitable for use within regular JavaScript or AngularJS on the frontend

1.0.1
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

angular-async-chainable

Pre-built async-chainable NPM repo suitable for use within regular JavaScript or AngularJS on the frontend.

See the main async-chainable documentation for how to use the module. This is just the frontend version.

Plain JavaScript usage

  • Install the component via Bower:

    bower install angular-async-chainable

  • Include the following files in your HTML header:

You can now use in your regular JavaScript code via the gloabl asyncChainable() function:

asyncChainable()
	.then(function(next) {
		console.log('Hello');
		next();
	})
	.then(function(next) {
		console.log('World');
		next();
	})
	.end();

Use within AngularJS

  • Install the component via Bower:

    bower install angular-async-chainable

  • Include the following files in your HTML header:

  • Setup the component in your Angular app:

    angular.module('app', ['angular-async-chainable']);

  • Require the $async service in any controller / component to use:

    app.controller('myController', $async) { asyncChainable() .then(function(next) { console.log('Hello'); next(); }) .then(function(next) { console.log('World'); next(); }) .end(); });

Keywords

angular

FAQs

Package last updated on 12 Apr 2016

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