Which directive is used for binding HTML attributes to model data?

  • ng-attribute
  • ng-bind
  • ng-bind-model
  • ng-model
The ng-model directive is used for binding HTML attributes to model data in AngularJS. It creates a two-way binding between the view (HTML) and the model, allowing changes in one to automatically reflect in the other. Using ng-model is essential for handling user input, form validation, and dynamically updating the model based on user interactions.
Add your answer
Loading...

Leave a comment

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