我正在尝试将我的函数订阅到一个偶数发射器,但我得到了
未提供“提示”的参数
我是新手,这就是为什么我真的不知道任何解决方法的原因。
console.log(listtasksobs);
this.listtask = listtasksobs;
})
if (this.eventEmitterService.subsVar==undefined){
this.eventEmitterService.subsVar = this.eventEmitterService
.invokeTaskEditFunction
.subscribe(()=>{
//PROBLEM HERE
this.editprompt(); //<<--- it shows : An argument for 'eprompt' was not provided
});
}
}
//load-editpromptlist
editprompt(eprompt:taskdb): void {
this.epromptshow = eprompt;
const dialogRef = this.dialog.open(TaskeditpromptComponent, {
width: '650px',
});
dialogRef.afterClosed().subscribe(result => {
console.log('The dialog was closed');
});
}