i want display drawer in all page and i get success to display it but problem is i don’t want to display on login
page.
code that i used
app.html
<ion-menu [content]="content">
<ion-toolbar>
<ion-title>Menu</ion-title>
</ion-toolbar>
<ion-content>
<ion-list>
<button menuClose ion-item *ngFor="let p of pages" (click)="openPage(p)">
{{p.title}}
</button>
</ion-list>
</ion-content>
</ion-menu>
<ion-nav [root]="rootPage" #content swipeBackEnabled="true"></ion-nav>
app.ts
export class MyApp {
@ViewChild(Nav) nav: Nav;
rootPage: any = LoginTabPage;
db : DatabaseHelper;
pages: Array<{title: string, component: any}>
constructor(platform: Platform) {
this.pages = [
{ title: 'Voucher Entry', component: VoucherentryPage },
{ title: 'Voucher Summary', component: VoucherSummaryInputPage }
];
platform.ready().then(() => {
StatusBar.styleDefault();
}
openPage(page) {
this.nav.setRoot(page.component);
}
}
enableProdMode();
ionicBootstrap(MyApp,[WebService]);