|
Answer» Model Directive As we know that ng-model directive bind the value of HTML controls LIKE input, select and textarea to the APPLICATION DATA. With the help of ng-model directive we can bind the value of an input field to a variable created in AngularJS. Below is the example for single way binding with AngularJS:-
 Two-Way Binding:-In this binding it will GOES in both ways. If user will change the value inside the input field. AngularJS property will change its values.Below is the example for two way binding:-

|