I'm looping through an array of items. Each item has a completed
value which is either true or false. I have 3 radio buttons.
0 = Show all
1 = Show completed
2 = Show incomplete
I've attempted to hide and show these elements when the radio button changes. Individually, they work. The moment I try to combo the conditions, they stop working. Am i missing something obvious?
[ngClass]="[
myRadioValue === 0 ? 'block' : '',
myRadioValue === 1 && item.completed ? 'block' : 'hidden',
myRadioValue === 2 && !item.completed ? 'block' : 'hidden'
]"