import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; const routes: Routes = [ { path: '', children: [ { path: 'appointment-calendar', loadChildren: () => import('./appointment-calendar/appointment-calendar.module').then(m => m.AppointmentCalendarModule) }, { path: 'view-appointment:date', loadChildren: () => import('./view-appointment/view-appointment.module').then(m => m.ViewAppointmentModule) }, ] } ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class AppointmentRoutingModule { }