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