Package Exports
- @robotcoral/ngx-codemirror6
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@robotcoral/ngx-codemirror6) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ngx-codemirror6

Angular Component for CodeMirror 6
Installation
To use this component in your project install it via npm
npm i @robotcoral/ngx-codemirror6 @codemirror/basic-setup --save
Using the component
Include CodeMirrorModule
in your main module:
import { CodeMirrorModule } from "@robotcarol/ngx-codemirror6";
@NgModule({
// ...
imports: [CodeMirrorModule],
// ...
})
export class AppModule {}
and add the ngx-codemirror
selector to your feature component:
import { Component } from "@angular/core";
@Component({
selector: "sample",
template: ` <ngx-codemirror [config]="{...}"> </ngx-codemirror> `,
})
export class Sample {
// ...
}
Configuration
You can pass an object of the type EditorStateConfig
to the ngx-codemirror component via the [config]
input.