I'm using an ionic ion-icon
<ion-icon name="checkmark" [class]="condition ? 'class1' : ''"></ion-icon>
I'd like to add an extra class if the condition is true, but dont add the extra class if the condition is false.
Problem is, if the condition is false it removes all the pre-defined classes on the icon from Ionic Framework.