Differentiate between ng-Class and ng-Style?



Differentiate between ng-Class and ng-Style?..

Answer / Ajay Kumar Pandey

ng-Class is used to set CSS classes on an HTML element based on a condition, while ng-Style is used to set inline styles. With ng-Class, you specify an array of class names that should be applied or removed depending on the condition, while with ng-Style, you set properties and values for individual CSS attributes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What are AngularJS features? 15

1 Answers  


How do you define transition between two states in angular?

1 Answers  


Does webpack remove unused imports?

1 Answers  


What is material design angular?

1 Answers  


What is package json in angular?

1 Answers  


How did you stop observable?

1 Answers  


List out the components which can be used in AngularJS modules?

1 Answers  


What are the Pipes?

1 Answers  


What is runguardsandresolvers?

1 Answers  


What are custom directives?

1 Answers  


What is npm in angular?

1 Answers  


What are the ways to track the error in angularjs?

1 Answers  


Categories