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 form input controls collection.
The following HTML input elements are called HTML controls:
HTML controls and HTML forms often coexist.
form = {"firstName":"John","lastName":"Doe"}
master = {"firstName":"John","lastName":"Doe"}
novalidate attribute is new in HTML5 in. Disable default authentication uses the browser. |
ng-app directive defines AngularJS applications.
ng-controller directive defines the application controller.
ng-model directive bind the two input elements to the user object model.
formCtrl function sets the initial value of the master object, and defines the reset () method.
reset () method sets the user object is equal to the master object.
ng-click command called reset () method, and the call button is clicked.
novalidate property in the application is not necessary, but you need to use AngularJS form, for rewriting the standard HTML5 validation.