What is the purpose of the ng-class directive in AngularJS?
A. To manage user authentication
B. To handle HTTP requests
C. To provide data to controllers
D. To conditionally add or remove CSS classes based on a condition
Answer:D
What is the purpose of the ng-class directive in AngularJS?
A. To manage user authentication B. To handle HTTP requests C. To provide data to controllers D. To conditionally add or remove CSS classes based on a condition