0

this.loader.load('app/lazy/lazy.module#LazyModule').then((moduleFactory: NgModuleFactory) => { const entryComponent = (moduleFactory.moduleType).entry; const moduleRef = moduleFactory.create(this.inj);

        const compFactory = moduleRef.componentFactoryResolver.resolveComponentFactory(entryComponent);
        this.container.createComponent(compFactory);
    });
user3751764
  • 51
  • 1
  • 2
  • 6
  • That question only refers to projects built on systemjs, however I am not sure why don't you want to use routing, it's a lot easier and cleaner way. – anteAdamovic Aug 02 '17 at 08:13
  • mine is widget based application it will get load with iframes so i cant use routing. thanks for helping. – user3751764 Aug 02 '17 at 08:15

0 Answers0