set error on input filed in angular form code example Example: validation minlength angular Validators.minLength(9)