mariohmol / ang-jsoneditor

Angular Jsoneditor that works with angular 4 to angular 15
https://stackblitz.com/edit/angular-json-editor
MIT License
155 stars 89 forks source link

Can never get jsonChange event to fire #101

Closed thardy closed 1 year ago

thardy commented 2 years ago

I see code like the following in the demo sample... <json-editor [options]="editorOptions" (jsonChange)="changeLog($event)" [data]="data" #editor>

When I code the above, I can never get the "changeLog" method to fire, no matter how I interact with the editor. I've tried text mode, code mode, and adding both modes.

Please help.

mariohmol commented 1 year ago

Hi, the doc was wrong, actually you have to use (change) <json-editor [options]="editorOptions" (change)="changeLog($event)" [data]="data" #editor>