zefoy / ngx-ace-wrapper

Angular wrapper library for Ace
MIT License
47 stars 16 forks source link

Integration with reactive forms #12

Open raju1014 opened 4 years ago

raju1014 commented 4 years ago

Hey, please let me know whether it is supported with reactive-forms(formControlName). Because my requirement is there will be a form which is generated dynamically, based on that each row/form-group will have the script editor. So while saving form i need to get the data separately for each and every group.

hopeng commented 3 years ago

Hi, it doesn't seem to work if I have the element inside a

. The editor is not showing at all. Are you able to add support? This tool so good! But it's much less useful if it can't work with forms. Thanks.

john8329 commented 10 months ago
    <ace
      [value]="form.controls.Contents.value!"
      (valueChange)="form.controls.Contents.setValue($event || ''); form.controls.Contents.markAsDirty()"