In my code, I want to ensure that the icon is only visible if the value at array index 0 is equal to 'Value':
HTML
<ion-icon *ngIf="allFamily[0] === 'Value'" class="checkas" name="checkmark"></ion-icon>
TS
allFamily = [
{0: 'Value'}
]
Despite implementing the logic, the ion-icon always displays. It seems that the condition is not being correctly evaluated.