Two-way data binding in AngularJS is achieved using the ________ directive to bind HTML elements to model data.

  • data-bind
  • model-bind
  • ng-bind
  • ng-model
Two-way data binding in AngularJS is achieved using the ng-model directive. This directive establishes a two-way binding between the HTML elements and the model data. When the data in the model changes or when the user interacts with the HTML elements, the changes are automatically reflected in both directions, providing a seamless and dynamic user experience. Understanding how to use ng-model is essential for efficient data synchronization in AngularJS applications.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *