libs/core/monaco-editor/src/lib/monaco-editor/editor.module.ts
dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_MonacoEditorModule cluster_MonacoEditorModule_imports cluster_MonacoEditorModule_exports DiffEditorComponent DiffEditorComponent MonacoEditorModule MonacoEditorModule DiffEditorComponent->MonacoEditorModule EditorComponent EditorComponent EditorComponent->MonacoEditorModule DiffEditorComponent DiffEditorComponent MonacoEditorModule->DiffEditorComponent EditorComponent EditorComponent MonacoEditorModule->EditorComponent
import { CommonModule } from '@angular/common';
import { ModuleWithProviders, NgModule } from '@angular/core';

import { NGX_MONACO_EDITOR_CONFIG, NgxMonacoEditorConfig } from './config';
import { DiffEditorComponent } from './diff-editor.component';
import { EditorComponent } from './editor.component';

@NgModule({
  imports: [CommonModule, EditorComponent, DiffEditorComponent],
  exports: [EditorComponent, DiffEditorComponent]
})
export class MonacoEditorModule {
  public static forRoot(
    config: NgxMonacoEditorConfig = {}
  ): ModuleWithProviders<MonacoEditorModule> {
    return {
      ngModule: MonacoEditorModule,
      providers: [{ provide: NGX_MONACO_EDITOR_CONFIG, useValue: config }]
    };
  }
}

results matching ""

    No results matching ""