Async: How use async in Angular

Created on 15 Mar 2016  ·  3Comments  ·  Source: caolan/async

Hi I want use this library in Angular but I'm not sure if it's possible because I can find Angular dependency to inject

question

Most helpful comment

@jairoGilC If you include the Async library it will be available on the $window object:

$window.async.each(things, function(thing, callback) {
   // Do stuff
   callback();
}, function(err) {
   // Do more stuff
});

All 3 comments

How are you loading other libraries in your project?

Async is available on npm, bower, as a standalone script, and many other package managers.

@jairoGilC If you include the Async library it will be available on the $window object:

$window.async.each(things, function(thing, callback) {
   // Do stuff
   callback();
}, function(err) {
   // Do more stuff
});

This seems to be more of an Angular question than an Async question.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hargasinski picture hargasinski  ·  21Comments

mvalletta picture mvalletta  ·  8Comments

aearly picture aearly  ·  10Comments

shelleyp picture shelleyp  ·  12Comments

joshuambg picture joshuambg  ·  21Comments