I am looking for the Typescript syntax to hide or show an Image component when a Button is clicked. I see some examples but not for Ionic 4 Typescript.
The ngIf works well. But I am struggling to get it to show/hide indiviual ListItems.
On my ListItem I have this:
*ngFor: let task of taskList
That does not work. I was hoping it would show all list items. In fact the app shows nothing when Tested.
Ultimately I want to show/hide list items based on an underlying value. So for example on each task:
*ngIf: task.taskName == 'abc'
You are right, the combination of ngFor and ngIf doesn't work there. Please see possible solutions here: https://stackoverflow.com/questions/346 ... sing-error
Thanks for the link. I had already worked around it by doing all the *ngIf work in the background and then bound my list to a temp array which just contained the list items I wanted to show. Messy but workable