how to check 2 object in ng-class in angular js code example Example: ng class [ngClass]="{'text-success':person.country === 'UK'}"