Suppose I set one custom validation to true on particular condition like this
if(condition){
this.form.contains['field'].setErrors({myValidation : true});
}
Then after some time I need to reset that particular validation (Not entire control validation) to false like
this.form.contains['field'].setErrors({myValidation : false});
It is not working. Here the only option is to set
this.form.contains['field'].setErrors(null);
But this sets all validation of the particular control to false.
How to set the particular validation of the control in the form to false?