Skip to main content
v20

Module Setup

Import the Module​

1. Use in NgModule​

import { CatbeeMonacoEditorModule } from '@ng-catbee/monaco-editor';

@NgModule({
imports: [
CatbeeMonacoEditorModule.forRoot({
// Configuration options
})
]
})
export class AppModule {}

or​

2. Use in Standalone Components​

import { provideCatbeeMonacoEditor } from '@ng-catbee/monaco-editor';

export const appConfig: ApplicationConfig = {
providers: [
provideCatbeeMonacoEditor({
// Configuration options
})
]
};

or​

3. Use in ApplicationConfig​

import { importProvidersFrom } from '@angular/core';
import { CatbeeMonacoEditorModule } from '@ng-catbee/monaco-editor';

export const appConfig: ApplicationConfig = {
providers: [
importProvidersFrom(
CatbeeMonacoEditorModule.forRoot({
// Configuration options
})
)
]
};

Check the Installation and Configuration guide for more details on configuration options.​