title: promise is not resolved at controller injection
body: <p>I'm facing an issue. I'm working with angular 1.2RC3 and ui-route 0.2.
  If i resolve with a function which is doing a synchronous return, it works.
  With a promise, the controller is initialized before resolving the promise.</p>
  
  <p><a href="http://plnkr.co/edit/feXHNaGsXwpXDBXkxLZx" rel="nofollow">http://plnkr.co/edit/feXHNaGsXwpXDBXkxLZx</a></p>
  
  <pre><code>angular.module('srcApp', ['ui.router'])
      .config(function ($stateProvider, $urlRouterProvider) {
  
          $urlRouterProvider.otherwise('/');
  
          var userResult = {
              id : 'userid',
              displayName : 'displayName'
          };
  
          var getUserPromise = function ($q, $timeout, $log) {
  
              var defer = $q.defer;
              $timeout(function () {
                  $log.log('promise resolved');
                  defer.resolve(userResult);
              }, 2000);
              return defer.promise;
          };
  
          $stateProvider.state('test', {
              url: '/',
              template: '&lt;div&gt;{{user.displayName}}&lt;/div&gt;',
              controller: 'testCtrl',
              resolve : {
                user: getUserPromise
              }
          });
      });
  
  
      var testCtrl = angular.module('srcApp').controller('testCtrl', function ($scope, $http, $log, user) {
          $log.log("test controller init");
          $log.log("test controller user=" + user);
          $scope.user = user;
      });
  </code></pre>