@daveshirmancandc wrote:
Background + Problem
- I’m selectively hiding and showing a split pane based on whether you’re logged in or not:
useris null/present.- Everything works fine first time you login + the split pane shows correctly.
- If you then refresh the page, the split pane auto hides the menu, shows the menu icon, which it shouldn’t.
Q) How can I fix this?
<ion-app> <ion-split-pane contentId="my-content" [disabled]="!user"> <ion-menu contentId="my-content" id="left"> <ion-header> <ion-toolbar color="primary"> <ion-title>AppAmazing+</ion-title> </ion-toolbar> </ion-header> <ion-content> <ion-list *ngFor="let page of pages"> <ion-item (click)="setRootPage(page)" button="true"> <ion-icon [name]="page.icon" slot="start"></ion-icon> {{page.title}} </ion-item> </ion-list> </ion-content> </ion-menu> <ion-router-outlet id="my-content"></ion-router-outlet> </ion-split-pane> </ion-app>
Posts: 1
Participants: 1