import { NvModule , InDiv } from '@indiv/core' ; import { HeroSearchService , HeroSearchService1 , HeroSearchService2 } from '../services/service' ; import { SharedModule } from './share.module' ; import { TestLoadchildComponent , R2 } from '../components/load-child-component' ; import '../services/private.service' ; @ NvModule ( { imports : [ SharedModule , ] , declarations : [ TestLoadchildComponent , R2 , ] , providers : [ HeroSearchService1 , HeroSearchService2 , HeroSearchService , ] , exports : [ TestLoadchildComponent , ] , bootstrap : TestLoadchildComponent , } ) export class LoadchildModule { constructor ( private indiv ) { console . log ( 999999888777 , '来自懒加载的模块 TestLoadchildModule' , this . indiv ) ; } }