title: How to know when promise succeeds
body: <p>I have this code</p>
  
  <pre><code>$http({method: $scope.method, url: $scope.url, cache: $templateCache}).
    success(function(data, status) {
      $scope.status = status;
      $scope.providers = data;                
    }).
    error(function(data, status) {
      $scope.providers2 = data || "Request failed";
      $scope.status = status;
  });
  </code></pre>
  
  <p>i would like to do something once my promise resolves, how can i check that?</p>
  
  <p>Thanks</p>