Hi Sujan,
Thanks for responding.
Please find the below code.
app.components.ts
export class MyApp {
@ViewChild(Nav) nav: Nav;
rootPage:any = LandingPage;
pages: Array<{title: string, component: any, icon:string}>
constructor(public platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen, public menu: MenuController, public storage: Storage) {
// set up our app
this.pages = [
{ title: ‘Home’, component: HomePage, icon: ‘ios-home-outline’},
{ title: ‘Reports’, component: ReportsPage, icon: ‘ios-albums-outline’},
{ title: ‘Generate MPin’, component: GenerateMpinPage, icon: ‘ios-lock-outline’},
{ title: ‘Change MPin’, component: ChangeMpinPage, icon: ‘ios-unlock-outline’},
{ title: ‘Help’, component: HelpPage, icon: ‘ios-help-circle-outline’}
];
statusBar.styleDefault();
splashScreen.hide();
}
}
After this i was redirected to the some other (Landing) page:
In this page, on button click event i redirected the another page using below code:
openPopover(myEvent) {
let myModal = this.modalCtrl.create(PolicyPage);
myModal.present();
}
Then now am in Policy Page.
Then it will show the popup, in the popup i have some two button like ‘Accept’ & ‘Reject’. When am tapping on the Accept button then am dismissing the popup and redirect to the home page, like below.
this.viewCtrl.dismiss();
this.navCtrl.setRoot(HomePage);
In this scenario , side menu is not working.
Suppose from the from the Landing page instead of opening the popup, if i redirect to the home page directly then side menu is working fine. From the Landing page to Home page am redirecting like below.
this.navCtrl.setRoot(HomePage);
Thank you !!!
Please let me know, if anything required.
Best Regards,
Sridhar