Hi Ionic Team,
I am facing a problem ionic 2 side menu not working when i go through number of pages some page are set as root and some page are pushes on stack.
Here is the Flow for Pages i am going through.
Navigation Stack:
RootPage -> navCtrl.push(Page1) -> navCtrl.setRoot(Page2) -> this.navCtrl.push(Page3) ->
this.navCtrl.push(Page4) -> this.navCtrl.push(Page5) -> this.navCtrl.setRoot(Page6) ->
this.navCtrl.setRoot( Page7)
<ion-menu class="sproglets_menu" [content]="content" persistent="true" >
<!-- (ionOpen)="menuOpened()" (ionClose)="menuClosed()"
-->
<ion-content>
<ion-item no-lines color="transparnt">
<ion-avatar item-start>
<img src="assets/images/addimage.png">
</ion-avatar>
<h2>Umer</h2>
<p>Sproglets</p>
</ion-item>
<ion-list class="rr-menu" no-lines>
<button class="search_button" ion-button block item-left round outline color="light" icon-only (click)="Place_order()">
<ion-icon name='search'></ion-icon>
Search Jobs
</button>
<button ion-item color="transparnt" (click)="Profile()" detail-none>
Profile
</button>
<button ion-item color="transparnt" (click)="Notifications()" detail-none>
Notifications
<span ion-button clear item-end color="login_btn_color">28</span>
</button>
<button ion-item color="transparnt" detail-none>
Timesheets
<span ion-button clear item-end color="login_btn_color">28</span>
</button>
<button ion-item color="transparnt" (click)="Payment()" detail-none>
Payments
<span ion-button clear item-end color="login_btn_color">28</span>
</button>
<button ion-item color="transparnt" (click)="Setting()" detail-none>
Settings
</button>
<button ion-item color="transparnt" (click)="Logout()" detail-none>
Logout
</button>
</ion-list>
</ion-content>
</ion-menu>
<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>
Ionic Info:
Cordova CLI: 6.5.0
Ionic Framework Version: 3.4.2
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.3.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 8.1
Node Version: v4.5.0
Xcode version: Not installed
Side menu works properly if i set Page7 as a root.
Please guide what i am doing wrong. Thanks!