The ng:validate
attribute widget validates the user input. If the input does not pass
validation, the ng-validation-error
CSS class and the ng:error
attribute are set on the input
element. Check out validators
to find out more.
<INPUT ng:validate="validator"> ... </INPUT>
validator – {string} –
The name of a built-in or custom validator
to
to be used.
This example shows how the input element becomes red when it contains invalid input. Correct the input to make the error disappear.