- Not set validator. Just let empty.
- When submit (what just button) and you can add validator runtime by
setValidators()
andsetErrors()
if you want. - After there are/is error(s), you have to clean validators with empty array into
setValidators()
https://angular.io/api/forms/AbstractControl#setValidators https://angular.io/api/forms/AbstractControl#setErrors
I recommend read more API options.
CLICK HERE to find out more related problems solutions.