export const routes: Routes = [ { path: 'first', component: FirstComponent }, { path: 'task/:id', component: TaskComponent }, { path: 'tasks', component: TasksComponent }, { path: 'home', component: HomeComponent }, { path: '', redirectTo: 'home', pathMatch: 'full' }, { path: '**', component: NopageComponent } ];