how to validate a template form without submitting in angular code example
Example 1: validation minlength angular
Validators.minLength(9)
Example 2: angular9+how+to+add+validators
this.form.controls["firstName"].setValidators([Validators.minLength(1), Validators.maxLength(30)]);