form validators required code example
Example 1: validation maxlength angular
Validators.maxLength(11)
Example 2: validation minlength angular
Validators.minLength(9)
Example 3: angular9+how+to+add+validators
this.form.controls["firstName"].setValidators([Validators.minLength(1), Validators.maxLength(30)]);