title: Angular 2 router Error: Invalid configuration of route 'undefined'
body: <p>I'm using the Angular 2 router 3.0.0-beta.2.</p>
  
  <p>I cannot seem to get a single route to work, I have this error:</p>
  
  <p><strong>"Error: Invalid configuration of route 'undefined': component, redirectTo, children must be provided"</strong></p>
  
  <p><strong>main.ts</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>import { bootstrap } from '@angular/platform-browser-dynamic';
  import { enableProdMode } from '@angular/core';
  import { AppComponent, environment, appRouterProviders } from './app';
  
  bootstrap(AppComponent, [appRouterProviders])
    .catch(err =&gt; console.error(err));
  </code></pre>
  
  <p><strong>app.routes.ts</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>import {provideRouter, RouterConfig}  from '@angular/router';
  import {HomeComponent} from './';
  
  export const appRoutes:RouterConfig = [
    [{
      path: '',
      redirectTo: '/home',
      pathMatch: 'full'
    },{
       path: 'home',
       component: HomeComponent
    }]
  ];
  
  export const routes: RouterConfig = [
    ...appRoutes
  ];
  
  export const appRouterProviders = [
    provideRouter(routes)
  ];
  </code></pre>
  
  <p><strong>app.component.ts</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>import { Component } from '@angular/core';
  import { ROUTER_DIRECTIVES }  from '@angular/router';
  
   @Component({
    moduleId: module.id,
    selector: 'app-root',
    templateUrl: 'app.component.html',
    directives: [ROUTER_DIRECTIVES]
  })
  export class AppComponent {
    title = 'app works!';
  }
  </code></pre>
  
  <p><strong>home.component.ts</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>import { Component, OnInit } from '@angular/core';
  import { ROUTER_DIRECTIVES }    from '@angular/router';
  
  @Component({
    moduleId: module.id,
    selector: 'app-home',
    templateUrl: 'home.component.html',
    directives: [ROUTER_DIRECTIVES]
  })
  export class HomeComponent implements OnInit {
  
    constructor() { }
  
    ngOnInit() {
    }
  }
  </code></pre>
  
  <p><strong>app.component.html</strong></p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;h1&gt;
    App Shell
  &lt;/h1&gt;
  &lt;router-outlet&gt;&lt;/router-outlet&gt;
  </code></pre>