The ng-model directive binds the value of HTML controls (input, select, text area) to application data.
The binding goes both ways. If the user changes the value inside the input field, the AngularJS property will also change its value.
In the example, we are using the model to bind user first and last name into one full name. We can achieve this with help of ng-model, ng-bind and ng-click.