It's really clear how to set custom errors in angular:
this.form.controls['field'].setErrors({same:true});
But it is not clear on how to remove that. Anyone know how to do this? Any alternatives?
Just set erros to null
this.form.controls['field'].setErrors(null);
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