angular if input is required code example Example: validation minlength angular Validators.minLength(9)