if condition in class angular 8

JavaScript
 <i [class]="user.login_status == 1 ? 'fas fa-circle user_active' : 'fas fa-circle user_inactive'" aria-hidden="true"></i>[ngClass]="{'my-class': step=='step1', 'my-class2':step=='step2' }"[ngClass]="{1:'my-class1',2:'my-class2',3:'my-class4'}[step]"
Source

Also in JavaScript: