The ngClass directive gives you the ability to conditionally change CSS classes via an expression in the html.
Example
Example that demonstrates dynamically set CSS classes on an DIV HTML element. Continue reading “How to apply class conditionally using ng-class in AngularJs”