title: Isn't Inline Array Annotation DI compatible with $routeProvider in AngularJS?
body: <p>My codes looks like this</p>
  
  <pre><code>angular
  .module('main', ['ngRoute'])
  .config(['$routeProvider',
      ($routeProvider) -&gt;
      $routeProvider
      .when '/',
        templateUrl: 'homePage/homePage.html'
        controller: 'MainCtrl'
  ])
  
  angular.module('main').controller('MainCtrl',
   ['$scope' , ($scope) -&gt;
      $scope.test = {}])
  </code></pre>
  
  <p>The browser will compain <code>Error: [ng:areq] Argument 'MainCtrl' is not a function, got Object</code>.</p>
  
  <p>But if I don't use the inline array dependency injection in <code>MainCtrl</code> and rewrite it like this:</p>
  
  <pre><code>angular.module('main').controller('MainCtrl',
   ($scope) -&gt;
      $scope.test = {})
  </code></pre>
  
  <p>Then everything works well. Does anyone have ideas about this? Thanks!</p>