how to check if a form is invalid angular template driven code example Example: validation minlength angular Validators.minLength(9)