0
reset(){
let alert = this.AlertCtrl.create({
buttons :['ok']
});
this.userservice.passwordreset(this.email).then((res: any)=>{
if(res.success){
alert.setTitle('Email sent');
alert.setSubTitle('please follow the instructions in the email to reset the password')
}
else{
alert.setTitle('failed');
}
})
}
错误:
property then does not exist on type void , A typescript error
有人可以通过纠正这个代码片断帮助我,使“然后”功能作品 欢呼!
的[。然后不会在角2型空隙存在]可能的复制(https://stackoverflow.com/questions/ 45420733/then-does-exist-in-type-void-in-angular-2) – echonax
为什么你再次发布相同的问题? – Sreemat
我无法解决我的查询,因为我不知道什么应该作为参数在复位功能 –