import { ComponentFactory , ComponentFactoryResolver , NgModule , } from '@angular/core' ; import { CommonModule as NgCommonModule } from '@angular/common' ; import { CommonModule } from '../../../common/common.module' ; import { InteractionsModalComponent } from './interactions-modal.component' ; import { NewsfeedModule } from '../newsfeed.module' ; @ NgModule ( { imports : [ CommonModule , NgCommonModule , NewsfeedModule , ] , declarations : [ InteractionsModalComponent ] , } ) export class InteractionsModalModule { constructor ( private componentFactoryResolver ) { } public resolveComponent ( ) { return this . componentFactoryResolver . resolveComponentFactory ( InteractionsModalComponent ) ; } }