Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"value" option property not working on Angular 12 #309

Open
iagoccampos opened this issue Jan 18, 2022 · 2 comments
Open

"value" option property not working on Angular 12 #309

iagoccampos opened this issue Jan 18, 2022 · 2 comments

Comments

@iagoccampos
Copy link

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'
@EdvinM
Copy link

EdvinM commented May 4, 2022

Same issue with Angular 13.

@jormazlop
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants