title: How to resolve my promise calls in my case
body: <p>I was trying to reduce my promise objects in my service. I have something like</p>
  
  <pre><code>angular.module('myApp').service('testService', ['Employees','$q',
      function(Employees, $q) {
          var service = {};
          var firstEmp;
  
          var deferred = $q.defer();
  
          Employees.query({
              Id: 123
              }, function(objects) {
                  firstEmp = objects[0];
                  deferred.resolve(objects);
          })
  
  
          service.getFirstEmployee = function() {
               var deferredtwo = $q.defer();
  
              // return deferredtwo.promise;
              //How to solve the double promise defer in my case
              //First promise is wait for the whole employees
              //this one is to return first employee
              deferred.promise.then(function(){
                  deferredtwo.resolve(firstEmp);
              })
              return deferredtwo.promise;
          }
  
          return service;
  ]);
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>testService.getFirstEmployee.then(function(firstEmployee){
      console.log(firstEmployee) &lt;---show first employee
  })
  </code></pre>
  
  <p>I am not sure how to resolve the double promise objects. Can anyone help me? Thanks a lot!</p>