title: Invalid configuration of route 'login': one of the following must be provided (component or redirectTo or children or loadChildren)
body: <p>I am learning Angular 2,I encounter this issue using RC7. </p>
  
  <p><strong>app.routing.ts :</strong></p>
  
  <pre><code>import { ModuleWithProviders, NgModule } from '@angular/core';
  import { Routes, RouterModule } from '@angular/router';
  import { AppComponent } from './app.component';
  import { LoginRoutes } from './login/index';
  import { DashboardRoutes } from './dashboard/index';
  
  const routes: Routes = [
       ...LoginRoutes,
      ...DashboardRoutes
     //{ path:'', component: GridViewComponent }
  ];
  
  @NgModule({
      imports: [RouterModule.forRoot(routes)],
      exports: [RouterModule],
      providers: []
  })
  
  export class Ng2PlayRoutingModule { }
  </code></pre>
  
  <p><strong>login.routes.ts</strong></p>
  
  <pre><code>import { LoginComponent } from './index';
  
  export const LoginRoutes = [
      {
          path: 'login',
          component: LoginComponent
      },
      {   path: '', 
          redirectTo: 'dashboard/gridview', 
          pathMatch: 'full'
      }
  ];
  </code></pre>
  
  <p><strong>dashboard.routes.ts</strong></p>
  
  <pre><code> import { DashboardComponent } from './index';
      import { GridRoutes } from './gridview/index';
  
      export const DashboardRoutes = [
          {
              path: 'dashboard',
              component: DashboardComponent,
              children: [
                  ...GridRoutes
              ]
          }
      ];
  </code></pre>
  
  <p>Here, when page loads it is redirects to <strong>dashboard/gridview</strong>. And it is not showing up anything and getting this error in console</p>
  
  <pre><code>zone.js:388Unhandled Promise rejection: Invalid configuration of route 'login': one of the following must be provided (component or redirectTo or children or loadChildren) ; Zone: &lt;root&gt; ; Task: Promise.then ;
  </code></pre>
  
  <p>Help me what is causing issue.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p><strong>login/index.ts</strong></p>
  
  <pre><code>export * from './login.component';
  export * from './login.routes';
  </code></pre>