Angular 6:
I have this form builder:
this.issuerDetails = this.formBuilder.group({
paymentInstruction: ['', [Validators.required]],
subscriptionTemplateHtml: ['', [Validators.required]],
});
with this getter
get issuerDetailsForm() { return this.issuerDetails.controls; }
down the road I remove the validators, and reset the value / set to pristine
this.issuerDetailsForm.subscriptionTemplateHtml.clearValidators();
this.issuerDetailsForm.subscriptionTemplateHtml.reset();
this.issuerDetailsForm.paymentInstruction.clearValidators();
this.issuerDetailsForm.paymentInstruction.reset();
When I go to re-enable these validators
this.issuerDetailsForm.subscriptionTemplateHtml.setValidators(Validators.required);
this.issuerDetailsForm.paymentInstruction.setValidators(Validators.required);
They aren't being triggered properly on form submission by the user
Why is this?