In AngularJS, which directive is commonly used to handle DOM events in controllers?

  • ng-bind
  • ng-click
  • ng-controller
  • ng-model
In AngularJS, the ng-click directive is commonly used to handle DOM events in controllers. The ng-click directive allows you to specify a function in the controller that should be executed when a particular DOM element is clicked. This directive simplifies the process of attaching event handlers to HTML elements, making it easier to handle user interactions in AngularJS applications.
Add your answer
Loading...

Leave a comment

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