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 |
What are AngularJS features? 15
How do you define transition between two states in angular?
Does webpack remove unused imports?
What is material design angular?
What is package json in angular?
How did you stop observable?
List out the components which can be used in AngularJS modules?
What are the Pipes?
What is runguardsandresolvers?
What are custom directives?
What is npm in angular?
What are the ways to track the error in angularjs?