import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { TaskComponent } from './task.component';
import { ListComponent } from './list/list.component';

const routes: Routes = [
  {
    path: '',
    component: TaskComponent,
    children:[{
      path:'',
      component: ListComponent,
    }]
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class TaskRoutingModule { }
