What is ngClass directive in AngularJS?



What is ngClass directive in AngularJS?..

Answer / Shekher Singh Bharti

The ngClass directive in AngularJS allows you to set CSS classes dynamically on an HTML element based on the expression provided. The expression evaluates to a string, and the string should consist of names of classes separated by spaces.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is jws and jwe?

1 Answers  


How to validate data in angular js?

1 Answers  


How can the spa be implemented in angularjs?

1 Answers  


What is a template in angularjs?

1 Answers  


Explain ng-app directive in angular.

1 Answers  


What is * ngfor?

1 Answers  


How to create & call angular 2 services in components?

1 Answers  


What are angular directives used for?

1 Answers  


What is tree shaking in angular?

1 Answers  


How do we create a singleton service in angular 2?

1 Answers  


What would you do to limit a scope variable to have one-time binding?

1 Answers  


What are events binding in angular 4?

1 Answers  


Categories