There are basically two types of forms validation in Angularjs, one is manual validation and one is automatic validation.
Manual verification:
is verified by angularjs the properties of the form. The Angularjs form must meet two conditions: 1, add novalidate= "Novalidate" to the form element, and 2, add Name= "theform" to the form element.
<! DOCTYPE html>
Adding novalidate= "Novalidate" to a form means that the form will no longer use the HTML5 validation feature
Adding Name= "theform" to a form means that the name of the form is theform. How to use theform, such as we verify that the form has been modified theform. $submitted
Submit a form via Ng-submit
Formmodel is a property in the $scope
The form's email was verified manually, using the many attributes of the Angularjs form, such as Theform.email. $valid, Theform. $pristine, theform. $submitted, Theform.email. $error. required,theform.email. $error. Email
Print all the properties of the Angularjs form by <pre>{{theform | json}}</pre>
Angularjs Form Validation