2
嗨,我正在使用Ionic 2 Beta 11. 我在登录页面后登录我设置页面作为根页面后登录页面显示和菜单图标也显示,但当我点击页面按钮和菜单图标在页面的屏幕上,然后页面不响应,也菜单不起作用。 我想这些解决方案,但这些都不工作侧边菜单和页面没有响应后,再次设置根页面Ionic 2 Beta 11
this.navCtrl.setRoot(AppointmentsPage);
和
this.app.getRootNav().setRoot(AppointmentsPage)
这里是我的代码。
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{
}
}
请帮助我在这个问题上