ngx-codemirror
ngx-codemirror copied to clipboard
"value" option property not working on Angular 12
Passing a text to property value does not reflect on code editor. ngModel does not reflect the value too.
Value:
<ngx-codemirror [options]="{ value: '???', readOnly: true }"></ngx-codemirror>
ngModel:
<ngx-codemirror [options]="{ readOnly: true }" [(ngModel)]="headerText"></ngx-codemirror>
headerText = 'Header'
Same issue with Angular 13.
Tested in angular 15 with ngModel, seems to be working fine (I have not tried the value property).