import { NgModule , ModuleWithProviders } from '@angular/core' ; import { NgxSummernoteDirective } from './ngx-summernote.directive' ; import { NgxSummernoteViewDirective } from './ngx-summernote-view.directive' ; @ NgModule ( { declarations : [ NgxSummernoteDirective , NgxSummernoteViewDirective ] , exports : [ NgxSummernoteDirective , NgxSummernoteViewDirective ] } ) export class NgxSummernoteModule { public static forRoot ( ) { return { ngModule : NgxSummernoteModule , providers : [ ] } ; } }