Am setting my routing in the module and i would like to set default route but it fails
This is the routing module
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 }
];
The above returns an error of
LoginComponent; useAsD...' is not assignable to type 'Route[]'
What could be wrong