reactive form custom validation in angular 8 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)]);