import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { RoastingSectionPage } from './roasting-section.page' ; const routes = [ { path : '' , component : RoastingSectionPage , children : [ { path : '' , redirectTo : '/roasting-section/dashboard' , pathMatch : 'full' , } , { path : 'dashboard' , loadChildren : ( ) => import ( './green-beans/green-beans.module' ) . then ( m => m . GreenBeansPageModule ) , } , { path : 'roasting-machine' , loadChildren : ( ) => import ( './roasting-machine/roasting-machine.module' ) . then ( m => m . RoastingMachinePageModule ) } ] } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] , } ) export class RoastingSectionPageRoutingModule { }