title: AngularJS service retry when promise is rejected
body: <p>I'm getting data from an async service inside my controller like this:</p>
  
  <pre><code>myApp.controller('myController', ['$scope', 'AsyncService',
  function($scope, AsyncService) {
      $scope.getData = function(query) {
          return AsyncService.query(query).then(function(response) {
              // Got success response, return promise
              return response;
          }, function(reason) {
              // Got error, query again in one second
              // ???
          });
      }
  }]);
  </code></pre>
  
  <p>My questions:</p>
  
  <ol>
  <li>How to query the service again when I get error from service without returning the promise.</li>
  <li>Would it be better to do this in my service?</li>
  </ol>
  
  <p>Thanks!</p>