class and ng class in angular code example Example: ng class [ngClass]="{'text-success':person.country === 'UK'}"