import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { LayoutComponent } from './layout/layout.component' ; const routes = [ { path : '' , component : LayoutComponent , children : [ { path : '' , loadChildren : ( ) => import ( '../ngx-formly-zorro/demo/src/app/ui/ui-ng-zorro-antd/config.module' ) . then ( mod => mod . ConfigModule ) } ] } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] } ) export class FormlyZorroRoutingModule { }