[ngClass]=string optional code example
Example 1: ng class
[ngClass]="{'text-success':person.country === 'UK'}"
Example 2: add classon ng if
[ngClass]="{'my-class': step === 'step1'}"
[ngClass]="{'text-success':person.country === 'UK'}"
[ngClass]="{'my-class': step === 'step1'}"