Daniel Fisher (lennybacon.com)

SOA, DATA & THE WEB

Chaining asynchronous JavaScript calls with Angular JS

A while ago I dropped a piece of code that prevents from unlimited callback nesting: Chaining asynchronous JavaScript calls

Today I was hacking some Angular JS code and found myself nesting callbacks. So I updated the CallChain to an Angular JS factory:

Here is how it is used:

Comments

Write a comment