import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { TpAudioEditorComponent } from './tp-audio-editor.component'; import { DragAndDropDirective } from './drag-and-drop.directive'; import { ModuleWithProviders } from '@angular/core/src/metadata/ng_module'; @NgModule({ imports: [ CommonModule, FormsModule ], declarations: [ TpAudioEditorComponent, DragAndDropDirective, ], exports: [ TpAudioEditorComponent ] }) export class TpAudioEditorModule { static forRoot(): ModuleWithProviders { return { ngModule: TpAudioEditorModule }; } }