For event handling, AngularJS provides the _________ directive to bind events to HTML elements.

  • ng-bind
  • ng-click
  • ng-event
  • ng-model
For event handling in AngularJS, the ng-click directive is used to bind a function or expression to the click event of an HTML element. When the element is clicked, the specified function is executed. This declarative approach to event handling simplifies the code and enhances maintainability in AngularJS applications. Understanding ng-click is fundamental for implementing interactive and responsive user interfaces.
Add your answer
Loading...

Leave a comment

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