Use the ng-model directive to bind the value of the input field to a property made in the controller.