_________ directive in AngularJS allows you to manipulate CSS classes on an element based on scope data.

  • ng-bind
  • ng-class
  • ng-model
  • ng-style
The ng-class directive in AngularJS allows you to dynamically manipulate CSS classes on an HTML element based on the data in the scope. It is commonly used for conditional styling, where the presence or absence of a class depends on certain conditions. Understanding how to use ng-class is crucial for creating dynamic and responsive user interfaces in AngularJS applications.
Add your answer
Loading...

Leave a comment

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