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