custom validator with api form control angular code example Example: validation minlength angular Validators.minLength(9)