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