Reputation: 1899
I'm Trying to hide/show elements of a ion-list
depending of a boolean variable which is changed when a button is clicked.
The problem is that if I try with *ngIf="{{editMode}}"
the ionic serve --lab
shows blank screen on browser.
<ion-item-sliding *ngFor="let item of items" (click)="itemTapped($event, item)">
<ion-item>
<ion-icon item-left name="rose" *ngIf="{{editMode}}"></ion-icon>
<ion-icon name="{{item.icon}}" item-left></ion-icon>
{{item.title}}
<div class="item-note" item-right>
{{item.note}}
</div>
</ion-item>
And if i try with *ngIf="'editMode'"
the result of click on button is nothing.
When I click on a nav bar button the boolen variable is modified to true/false.
What would be wrong?
Upvotes: 1
Views: 10840