ngx-codemirror icon indicating copy to clipboard operation
ngx-codemirror copied to clipboard

"value" option property not working on Angular 12

Open iagoccampos opened this issue 3 years ago • 2 comments

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'

iagoccampos avatar Jan 18 '22 20:01 iagoccampos

Same issue with Angular 13.

EdvinM avatar May 04 '22 07:05 EdvinM

Tested in angular 15 with ngModel, seems to be working fine (I have not tried the value property).

jormazlop avatar Dec 28 '22 19:12 jormazlop