My FormControl
is connected to an input
element.
<input matInput [formControl]="nameControl">
This setup looks like the following during initialization:
this.nameControl = new FormControl({value: initValue, disabled: true}, [Validators.required, UniqueValueValidator(uniqueValues)]);
While the FormControl
is disabled, error checking is not performed.
How can I keep the control disabled and still display any errors that occur?