import { NgModule } from '@angular/core' ; import { Modal as BaseModal } from 'ngx-modialog' ; import { Modal } from './modal' ; export const providers = [ { provide : BaseModal , useClass : Modal } , { provide : Modal , useClass : Modal } ] ; @ NgModule ( { providers } ) export class JSNativeModalModule { static getProviders ( ) { return providers ; } }