Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The provided example will allow you to do sequential requests to the server in Angular.js.
- It will iterate all the items and call server for each item, however, if one request will fail, all sequential requests will be aborted.
- If you need to call all requests no matter what, just replace `promise.then()` with `promise.finally()`.
- Cheers!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement