LoadChildrenCallback
调用此函数以解析惰性加载的路由集合。必须是以下形式的箭头函数: () => import('...').then(mod => mod.MODULE)
A function that is called to resolve a collection of lazy-loaded routes. Must be an arrow function of the following form: () => import('...').then(mod => mod.MODULE)
type LoadChildrenCallback = () => Type<any> | NgModuleFactory<any> | Observable<Type<any>> | Promise<NgModuleFactory<any> | Type<any> | any>;
参见
说明
例如:
For example:
[{
path: 'lazy',
loadChildren: () => import('./lazy-route/lazy.module').then(mod => mod.LazyModule),
}];