title: AngularJS controller can not inject resolver
body: <p>Please see this <a href="https://plnkr.co/edit/VmqcLRSu7viRgl67MKZ2?p=preview" rel="nofollow noreferrer">fiddle</a></p>
  
  <p>I want to inject resolver into the AngularJS controller but not working. The error message is <code>Unknown provider: urlParasProvider &lt;- urlParas &lt;- MyController</code></p>
  
  <p>Any suggestions, thanks!</p>
  
  <pre><code>function config($routeProvider){
    $routeProvider
      .when('/abc',{
          controller: 'MyController',
          resolve: {
              urlParas : function(){
                  // return $location.absUrl();
                  return 'abc';
              }
          }
        })
        .otherwise({
          controller: 'MyController',
          resolve: {
  
              urlParas : function(){
                  // return $location.absUrl();
                  return 'abc';
              }
  
          }
        });
  }
  
  myApp.$inject = ['$scope','urlParas']; 
  </code></pre>