【发布时间】:2017-02-21 13:47:24
【问题描述】:
您好,我正在使用 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{
}
}
请帮我解决这个问题
【问题讨论】:
标签: angular typescript ionic-framework ionic2 ionic-view