NgClass Stackoverflow
<div [ngClass]="condition1 ? 'class1' : 'class2' " ></div>
Cherry berry
<div [ngClass]="condition1 ? 'class1' : 'class2' " ></div>