My form is built using the FormGroup method.
I need to add validators to specific controls that have data after the user inputs information and clicks on the 'check' button.
Here's what I attempted:
this.fg.controls['someKey'].setValidators([Validators.required]);
followed by
this.fg.controls['someKey'].updateValueAndValidity();
However, this approach ends up clearing the data in the control. Any suggestions?