I've got some nice logic in an HTML element to switch an attribute value between 2 options using if:
<igx-icon [name]="cell.value=='Modified' ? 'mode_edit' : 'file_upload'"></igx-icon>
Do I have a similar option if I had more than 2 cases? I know I could:
<div [ngSwitch]="cell.value">
<igx-icon *ngSwitchCase="Modified" name="mode_edit></igx-icon>
<igx-icon *ngSwitchCase="Uploaded" name="file_upload"></igx-icon>
<igx-icon *ngSwitchCase="Third Case" name="thirdOption"></igx-icon>
</div>
but it's not as brief of direct as the first form. Is there a tool to be used to accomplish this directly on the name property?