Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. $scope.offer = [];
  2. angular.forEach($scope.details, function (product) {
  3. SomeAPI.ById.query({ product: product.id }, function (response) {
  4. $scope.offer.push(response);
  5. });
  6. return $scope.offer;
  7. });
  8. console.log($scope.offer);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement