When using the push
method, I am unable to see the side menu. However, it works fine with the setRoot
navigation. How can I resolve this issue and display the side menu when using the push
method?
dashboard.html
<ion-col col-9>
<ion-searchbar (click)="searchPage()" placeholder="Search for Media"></ion-searchbar>
</ion-col>
dashboard.ts
searchPage() {
this.navCtrl.setRoot('SearchPage');//I can see side menu
//this.navCtrl.push('SearchPage');//I cannot see side menu
}
search.html
<ion-header>
<ion-navbar color="secondary">
<button ion-button menuToggle right>
<ion-icon name="menu"></ion-icon>
</button>
</ion-navbar>
</ion-header>