Most of the built-in angular validators are used to check user input against defined types or patterns. You can easily create your own custom validators as well.
Following is the list of built-in angular validators:
asynchronous()
- Provides asynchronous validation via a
callback function.date()
- Checks user input against default date format:
"MM/DD/YYYY"email()
- Validates that user input is a well-formed email
address.integer()
- Validates that user input is an integerjson()
- Validates that user input is valid JSONnumber()
- Validates that user input is a numberphone()
- Validates that user input matches the pattern
"1(123)123-1234"regexp()
- Restricts valid input to a specified regular
expression patternurl()
- Validates that user input is a well-formed URL.For more information about how angular validators work, and how to create your own validators, see Understanding Angular Validators in the angular Developer Guide.