HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
AngularJS forms and controls can validate data inputs.
In the previous sections, you have learned the knowledge about AngularJS forms and controls.
AngularJS forms and controls can offer validation features and illegal data entered by the user a warning.
Verify that the client can not ensure the security of user data entry, data validation server is also necessary. |
HTML form attributes novalidate for disabling the browser's default validation. |
AngularJS ng-model instruction is used to bind input elements to the model.
Model object has two attributes: user and email.
We use ng-show command, color: red in the message is only $ dirty or $ invalid display.
Attributes | description |
---|---|
$ Dirty | There are forms to fill record |
$ Valid | Field contents legitimate |
$ Invalid | Field contents are illegal |
$ Pristine | No forms to fill record |