xxxxxxxxxx
<i [class]="user.login_status == 1 ? 'fas fa-circle user_active' : 'fas fa-circle user_inactive'" aria-hidden="true"></i>
xxxxxxxxxx
[ngClass]="{'my-class': step=='step1', 'my-class2':step=='step2' }"
xxxxxxxxxx
[ngClass]="{'my-class': step === 'step1', 'my-class2':step === 'step2' }"
xxxxxxxxxx
<button [class.disable]="1==1">Apply disable class when condition is true</button>