Hi i am using Ionic 2 Beta 11.
I am on login page after login i am setting a appointment page as a root page the page is set as root page and the appointment page shows on the screen to.but when i click on anywhere on the screen the page does not responds and also the menu does not work to.
i tried these solutions but none of these work
this.navCtrl.setRoot(AppointmentsPage);
and
this.app.getRootNav().setRoot(AppointmentsPage)
Here is my code.
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{
}
}
Kindly help me on this issue