angular form validation change required field when one fomr value change code example Example: validation minlength angular Validators.minLength(9)