title: Angular promise on multiple $http
body: <p>I am trying to do multiple <code>$http</code> call and my code looks something like this:</p>
  
  <pre><code>var data = ["data1","data2","data3"..."data10"];
  
  for(var i=0;i&lt;data.length;i++){
      $http.get("http://example.com/"+data[i]).success(function(data){
          console.log("success");
      }).error(function(){
          console.log("error");
      });
  }
  </code></pre>
  
  <p>How can I have the promise to know all <code>$http</code> call is successfull? If anyone of it fail, will perform some action.</p>