In Angularjs, you can use the HTML5 form verification feature with your own validation instructions, which describes the core functionality used.
- With form validation, first make sure that each control of the form has a Name property
- If you want to block the browser's default validation behavior for forms, you can add novalidate tags to the form elements.
Required, just add the HTML5 tag to the input field element required
Minimum length; Use the ANGULARJS directive ng-minlength= "{number}" on the input field
Maximum length; Use the ANGULARJS directive ng-maxlength= "{number}" on the input field
pattern matching; use ng-pattern= "[a-za-z]" to ensure that the input matches the specified regular expression
e-mail, as long as the type of input is set to email
Set the type of input to number
URL, verify input is URL address, set input type to URL
Angularjs Review------Form Validation