import { NgModule } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { Modal as Modal_ } from 'ngx-modialog' ; import { Modal as InAppModal } from './modal' ; import { InAppModalBackdrop } from './modal-backdrop' ; export { Modal } from './modal' ; export { InAppModalContext , InAppModalContextBuilder } from './modal-context' ; export function getProviders ( ) { return [ { provide : Modal_ , useClass : InAppModal } , InAppModal ] ; } @ NgModule ( { imports : [ CommonModule ] , declarations : [ InAppModalBackdrop ] , providers : getProviders ( ) , entryComponents : [ InAppModalBackdrop ] } ) export class InAppModalModule { static getProviders ( ) { return getProviders ( ) ; } }