如何在angular ngmodulefactory中加载远程模块?

时间:2018-07-10 09:47:52

标签: angular dynamic module

this.loader.load("http://domainname.com/modules/xyq.module#XyqModule").then((moduleFactory: NgModuleFactory<any>) => {

   // const entryComponent = (<any>moduleFactory.moduleType).entry;
 //   const moduleRef = moduleFactory.create(this.inj);

   // const compFactory = //moduleRef.componentFactoryResolver.resolveComponentFactory(entryComponent);
 //   this.container.createComponent(compFactory);
  }) 

0 个答案:

没有答案