Hey there, I am currently working with Ionic 2 Beta 11. On the login page, I set a specific page as the root page after logging in. However, once the page loads and the menu icon appears, clicking on the button or the menu icon does not seem to have any response. I have tried various solutions but none of them seem to work.
this.navCtrl.setRoot(AppointmentsPage);
and
this.app.getRootNav().setRoot(AppointmentsPage)
Below is my code snippet:
onLogin(form) {
this.submitted = true;
if (form.valid) {
this.networkservice.showLoading();
var data = this.userData.login(this.login.email,this.login.password);
console.log(data);
data.subscribe(res => {
if(res.length == 0 ) {
this.login.isVaild = false;
this.networkservice.hideLoading();
} else {
this.userData.setDoctor(res[0]);
this.hideLoading();
this.navCtrl.setRoot(AppointmentsPage);
}
});
} else {
}
}
I would appreciate some assistance with resolving this issue. Thank you!