I have a form in Angular with a form array where you can add or delete data. Currently, during marking a form as dirty, it does not include button press for deletion. Is there a way to do this? Thank you!
Try like this:
this.Form.get('control').markAsDirty();
this.Form.get('control').updateValueAndValidity();
where:
Form : FormGroup and control (make it dirty) is control in Form
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With