import { NgModule , ComponentFactoryResolver , ComponentFactory , } from '@angular/core' ; import { CommonModule as NgCommonModule } from '@angular/common' ; import { CommonModule } from '../../../common/common.module' ; import { AuthModalComponent } from './auth-modal.component' ; import { MindsFormsModule } from '../../forms/forms.module' ; import { AuthModalProSiteHeader } from './pro-site-header/pro-site-header.component' ; @ NgModule ( { imports : [ NgCommonModule , CommonModule , MindsFormsModule ] , declarations : [ AuthModalComponent , AuthModalProSiteHeader ] , exports : [ AuthModalComponent ] , } ) export class AuthModalModule { constructor ( private componentFactoryResolver ) { } public resolveComponent ( ) { return this . componentFactoryResolver . resolveComponentFactory ( AuthModalComponent ) ; } }