Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (id in ids) {
- if (id needs to be called) {
- console.log(id); // statement 1
- $http.post('someEndpoint', {id : id}).then(function success(response) {
- console.log(id); // statement 2
- someDataStructure[id].data = response.data;
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement