ngClass directive allows you to dynamically set CSS classes on an HTML element by databinding an expression that represents all classes to be added.
Say Example, If text box is touched/invalid/error you can highlight with different colors like..
touched – green
invalid – orange
error – green
Similarly you can have your own scenarios of using this beautiful ng-class.
Example with clear scenario: