title: UI router Unknown provider for injecting service into child state resolve
body: <p>Got Unknown provider when injecting service into the child state resolve function. But if defined a resolve in the parent state, it just works. Below there are some sample codes:</p>
  
  <p>I defined a service module</p>
  
  <pre><code>angular.module('services', [])
    .factory('myService', function() {
      // my service here
    })
  </code></pre>
  
  <p>and initialize the app</p>
  
  <pre><code>var app = angular.module('app', ['services', 'ui.router']);
  app.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, 
  
      $urlRouterProvider) {
        $stateProvider.state('wizard', {
          url: '/wizard',
          abstract: true
        })
        .state('wizard.step1', {
          url: '/step1',
          templateUrl: ... ,
          resolve: {
            name: function(myService) {
              // do something with mySerice
            }
          },
          controller: function(name) {
            // controller codes here
          }
        })
      }]);
  </code></pre>
  
  <p>I got the error Unknown provider complaining about myService in the wizard.step1 resolve. But if I add a random resolve in the parent state, like</p>
  
  <pre><code>$stateProvider.state('wizard', {
              url: '/wizard',
              abstract: true,
              resolve: {
                a: function() { return 1; }
              }
            })
  </code></pre>
  
  <p>then it works without error. Wonder what happens here?</p>