angular directive for form validation code example Example: validation minlength angular Validators.minLength(9)