Avoid using the call of web service with AngularJS $http inside a loop | CAST Appmarq