title: Can't separate angular components in angular 1
body: <p>I'm trying to organize my code a bit differently than the tutorial for component routing.  Quite simply I want to my app to have this structure.</p>
  
  <pre><code>app.js
  -components/
   +-settings/
    +-settings.js
    +-general/
     +-generalSettings.js
  </code></pre>
  
  <p><strong>I'm using Angular 1.5 and <a href="http://%3Cscript%20src=%22https://npmcdn.com/@angular/router@0.2.0/angular1/angular_1_router.js%22%3E%3C/script%3E" rel="nofollow">this version</a> of angular router</strong>: <strong><em>this works</em></strong></p>
  
  <h1>app.js</h1>
  
  <pre><code>'use strict';
  angular.module('admin', [ 'ngComponentRouter', 'settings' ])
  
    .config(function($locationProvider) {
      $locationProvider.html5Mode(true);
    })
  
    .value('$routerRootComponent', 'admin')
  
    .component('admin', {
      templateUrl: 'scripts/app.html',
      $routeConfig: [
          {path: '/settings/...', name: 'Settings', component: 'settings', useAsDefault: true}
      ]
    })
  </code></pre>
  
  <h1>settings.js</h1>
  
  <pre><code>angular.module('settings', [])
      .component('settings', {
          template: '&lt;h1&gt;settings&lt;/h1&gt;&lt;ng-outlet&gt;&lt;/ng-outlet&gt;',
          $routeConfig: [
              {path: '/general', name: 'GeneralSettings', component: 'generalSettings', useAsDefault: true}
          ]
      })
      .component('generalSettings', {
          template: '&lt;h2&gt;General&lt;/h2&gt;',
          controller: GeneralSettingsCtrl,
      })
  
  function GeneralSettingsCtrl(){
  }
  </code></pre>
  
  <p>However, when I attempt to remove the general settings component from the settings.js file I get the error <code>Cannot read property '$routerOnActivate' of undefined</code>.</p>
  
  <p>I suspect it is how I am either defining/injecting the dependencies or maybe I need to have an individual module definition for generalSettings (defining its own module 'generalSettings' and injecting it seems to work, i'm not convinced this is the best option tho).  Pretty much boils down to I'm not sure the best way to do it.  really not trying to have every single nested component in one file.  Please advice, thank you!</p>