In the promise library Q, you can do the following to sequentially chain promises:
var items = [\'one\', \'two\', \'three\']; var chain = Q(); items
var when = $q.when(); for(var i = 0; i < 10; i++){ (function() { chain = when.then(function() { return $http.get('/data'); }); })(i); }