What is the purpose of the ng-submit directive in AngularJS?
A. To handle HTTP requests
B. To execute a function when a form is submitted
C. To conditionally show or hide an element
D. To provide data to controllers
Answer:B
What is the purpose of the ng-submit directive in AngularJS?
A. To handle HTTP requests B. To execute a function when a form is submitted C. To conditionally show or hide an element D. To provide data to controllers