angularjs ng class code example
Example 1: ng class
[ngClass]="{'text-success':person.country === 'UK'}"
Example 2: ng class in angular
[ngClass]="{'text-success':person.country === 'UK'}"
Example 3: ng class in angular
[class.my_class] = "step === 'step1'"