import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { AboutComponent } from './about.component' ; const routes = [ { path : '' , component : AboutComponent , children : [ { path : 'team' , loadChildren : ( ) => import ( './team/team.module' ) . then ( m => m . TeamModule ) } ] } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] } ) export class AboutRoutingModule { }