title: Why is AppController.$routeConfig undefined?
body: <p>I'm trying to follow this tutorial:</p>
  
  <p><a href="https://angular.github.io/router/getting-started" rel="nofollow">https://angular.github.io/router/getting-started</a></p>
  
  <p>Why is AppController.$routeConfig undefined?</p>
  
  <pre><code>angular.module('app', ['ngNewRouter', 'app.home'])
    .controller('AppController', ['$router', AppController]);
  
  AppController.$routeConfig([
    {path: '/', component: 'home' }
  ]);
  function AppController ($router) {}
  </code></pre>
  
  <p>my html:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;base href="/"&gt;
    &lt;title&gt;My app&lt;/title&gt;
  &lt;/head&gt;
  &lt;body ng-app="myApp" ng-controller="AppController as app"&gt;
  &lt;div ng-viewport&gt;&lt;/div&gt;
  
  &lt;script src="node_modules/angular/angular.js"&gt;&lt;/script&gt;
  &lt;script src="node_modules/angular-new-router/dist/router.es5.js"&gt;&lt;/script&gt;
  &lt;script src="./components/home/home.js"&gt;&lt;/script&gt;
  
  &lt;script src="app.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>