Описание тега ng-class
The angularjs ngClass directive allows you to set CSS classes on an HTML element, dynamically, by databinding an expression that represents all classes to be added.
The ngClass
directive allows you to set css classes on an html element, dynamically, by databinding an expression that represents all classes to be added.
The directive won't add duplicate classes if a particular class was already set.
When the expression changes, the previously added classes are removed and only then the new classes are added.
Closely Related Tags
angularjs for AngularJS questions
/questions/tagged/angularjs-directive for AngularJS directive-specific questions