CodeMirror form component for angular material. Based on @webacad/ng-codemirror.
@angular/animations@angular/cdk@angular/common@angular/core@angular/forms@angular/material@angular/platform-browser@webacad/ng-codemirrorcodemirrorrxjs
$ npm install --save @webacad/ng-mat-codemirroror with yarn
$ yarn add @webacad/ng-mat-codemirrorapp.module.ts:
import {MatCodemirrorModule} from '@webacad/ng-mat-codemirror';
@NgModule({
imports: [
MatCodemirrorModule,
],
})
export class AppModule {}<wa-mat-codemirror mode="javascript"></wa-codemirror>Look here for more details.
This package implements all the necessary code for angular forms. That means that you can use it just like any other ordinary form control.
It is also fully ready for material's <mat-form-field> component.