What is formControl? angular basic interview question?
Jun 22, 2023
formControl is instance for a form element class(object). used for get and set value and validation.
have methods like — setValue, patchValue, getRawValue, setValidators, setAsyncValidators, removeValidators , clearValidators, markDirty, markPristine, updateValueAndValidity, setError, getError, setError, hasError, getError etc,….