@Helsing001 wrote:
I have this code which, when selectionMode is not active, shows some version of the nav-bar, when it is active, it shows something else.
When going into selectionMode, the second version of the nav-bar is indeed shown. When cancelling selection mode, the first version is shown again except the menuToggle. It doesn’t appear again. Why?<ion-header> <ion-navbar *ngIf="!selectionMode"> <button ion-button menuToggle> <ion-icon name="menu"></ion-icon> </button> <ion-title *ngIf="customList">{{customList.listName}}</ion-title> <ion-buttons *ngIf="customList.listType != 'fav' && customList.listType != 'ban'" end> <button ion-button icon-only (click)="presentPopover($event)"> <ion-icon name="more"></ion-icon> </button> </ion-buttons> </ion-navbar> <ion-navbar *ngIf="selectionMode"> <ion-buttons> <button ion-button icon-only (click)="closeSelection()"> <ion-icon name="close"></ion-icon> </button> <strong>{{ selectedArtists.length }} items selected</strong> </ion-buttons> </ion-navbar> </ion-header>
Posts: 1
Participants: 1