title: Angular promise not waiting for resolve
body: <p>So it seems I still don't understand promises correctly. I am using the angular resolve to prevent controller loading the view before the promise is resolve but its not working as expected. What I am doing wrong? </p>
  
  <p>Here is my service </p>
  
  <pre><code>commonServicesModule.factory('helpdeskPriority', function($q, $timeout, getCommonList) {
          var items;
          return {
              get: function(params) {
                  var defer = $q.defer();
                  $timeout(function() {
                      getCommonList.helpdesk.priority().success(function(result) {
                          console.log('waited for long tym ');
                          defer.resolve(result);
                      });
                  }, 0);
                  return defer.promise;
              },
          }
      });
  </code></pre>
  
  <p>Call from controller </p>
  
  <pre><code>helpdeskPriority.get().then(function(data) {     
              console.log(data);
          });
  </code></pre>
  
  <p>my priority function</p>
  
  <pre><code>priority: function() {
                          return $http({
                              url: urlc.getListing.priority,
                              data: {
                                  "params": JSON.stringify({})
                              },
                              method: 'POST',
                          });
                      },
  </code></pre>