I have got a very similar question to this: Is it possible to conditionally display element attributes using Angular2?
However, I would like to toggle between two boolean attributes instead of adding/removing a single boolean attribute.
At the moment am achieving this like this:
<ion-icon name="checkmark-circle" item-left [attr.dark]="item.isComplete ? true : null" [attr.light]="item.isComplete ? null : true" (click)="toggleToDoItemCompleteStatus(item, i)"></ion-icon>
Is there a more elegant way?