title: $q.all() in angular does not resolve well
body: <p>I am doing 3 $http calls in a factory and I am in troubles.</p>
  
  <p>I declare 4 promises: </p>
  
  <pre><code>var promise = $q.defer(),
    PBdeferred = $q.defer(),
    Rdeferred = $q.defer(),
    Pdeferred = $q.defer();
  </code></pre>
  
  <p>After that I do the first call to the API</p>
  
  <pre><code>$http.get('/pendingBills').then(function(response) {
    var PendingBills = ['id', 'path', 'reservas', 'importe', 'fecha'];
    PBdeferred.resolve(PendingBills);
  });
  </code></pre>
  
  <p>And for now resolve the last 2 promises with an empty array (I have not the endopoint yet)</p>
  
  <pre><code>  Rdeferred.resolve([]);
    Pdeferred.resolve([]);
  </code></pre>
  
  <p>There is where I use $q.all</p>
  
  <pre><code>$q.all([PBdeferred, Rdeferred, Pdeferred]).then(function (results){
      console.log('Results', results);
      promise.resolve({
        PendingBills: results[0],
        Remittances: results[1],
        Payed: results[2]
      });
    });
  </code></pre>
  
  <p>And return the higth level promise </p>
  
  <pre><code>return promise.promise;
  </code></pre>
  
  <p>The console log shows the promises but I thougth that in there point the promises are resolved.</p>
  
  <p>Some idea for fix this?</p>