What is the purpose of the ng-click directive in AngularJS?
A. To bind input fields to a variable in the model
B. To handle HTTP requests
C. To conditionally show or hide an element
D. To execute a function when an element is clicked
Answer:D
What is the purpose of the ng-click directive in AngularJS?
A. To bind input fields to a variable in the model B. To handle HTTP requests C. To conditionally show or hide an element D. To execute a function when an element is clicked