An AngularJS form is a collection of input controls.
HTML input elements are called HTML controls:
HTML forms group HTML controls together.
form = {{user}}
master = {{master}}
The novalidate attribute is new in HTML5. It disables any default browser validation. |
The ng-app directive defines the AngularJS application.
The ng-controller directive defines the application controller.
The ng-model directive binds two input elements to the user object in the model.
The formController() function sets initial values to the master object, and invokes the reset() method.
The reset() method sets the user object equal to the master object.
The ng-click directive invokes the reset() method, only if the button is clicked.
The novalidate attribute is not needed for this application, but normally you will use it in AngularJS forms, to override standard HTML5 validation.