Validators Flashcards
asynchronous
Provides asynchronous validation via a callback function.
date
Checks if user input is a valid date.
Checks if user input is a valid email.
integer
Checks if user input is a valid integer.
Json
Checks if user input is a valid JSON.
number
Checks if user input is a valid number.
phone
Checks if user input is a valid phone number.
regexp
Restricts valid input to a specified regular expression pattern.
url
Validates that user input is a well formed URL.
Custom validator
angular.validator(, function(input [, additional params]) { [your validation code]; if ( [validation succeeds] ) { return false; } else { return “my error message”; } }
Provides asynchronous validation via a callback function.
asynchronous
Checks if user input is a valid date.
date
Checks if user input is a valid email.
Checks if user input is a valid integer.
integer
Checks if user input is a valid JSON.
Json