Advertisement
Guest User

Untitled

a guest
May 4th, 2015
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. The provided example will allow you to do sequential requests to the server in Angular.js.
  2.  
  3. It will iterate all the items and call server for each item, however, if one request will fail, all sequential requests will be aborted.
  4.  
  5. If you need to call all requests no matter what, just replace `promise.then()` with `promise.finally()`.
  6.  
  7. Cheers!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement