Forms are a core part of sending data to a server in HTML. As a result of this, Angular has some extra features that work with forms.
Each form input will need ngModel
defined to store the value in the scope. See Directives, ngModel for more information.
Here is a simple form that binds two text inputs:
<form name="form"> First Name: <input type="text" name="firstname" ng-model="data.firstName" /> Last Name: <input type="text" name="lastName" ng-model="data.lastName" /> </form> {{data.firstName}} {{data.lastName}}