title: Angular2 setting default route
body: <p>Am setting my routing in the module and i would like to set default route but it fails</p>
  
  <p>This is the routing module</p>
  
  <pre><code>const appRoutes: Routes = [
   { path: 'login', component: LoginComponent, useAsDefault:true }, //returns an error
   {
    path: 'dash',
    redirectTo:"dashboard"
  },
  
  { path: 'reset-password', component: ResetPasswordComponent },
  { path: '',    redirectTo: '/dashboard', pathMatch: 'full'  },
  { path: '**', component: PageNotFoundComponent }
  ];
  </code></pre>
  
  <p>The above returns an error of </p>
  
  <pre><code>LoginComponent; useAsD...' is not assignable to type 'Route[]'
  </code></pre>
  
  <p>What could be wrong</p>