What is ng-model in Angular JS and How to use it?
With the ng-model directive you can bind the value of an input field to a variable created in AngularJS. Here we will have two input fields which will bind to two variables in Angular JS. Example Just copy paste the above code to your editor and save in html and see the result.