Open iagoccampos opened 2 years ago
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).
Passing a text to property value does not reflect on code editor. ngModel does not reflect the value too.
Value:
ngModel: