如果ListPatients函数成功执行,我需要执行一个函数,我应该在其中添加
this.dataApiService.ListPatients()
.subscribe((
data : PacienteInterface) =>(this.pacienteLista = data),
error => this.mensajeError(error)
);
答案 0 :(得分:0)
那是什么?
this.dataApiService.ListPatients()
.subscribe((data: PacienteInterface) => {
this.pacienteLista = data;
// functionToCall();
}, error => this.mensajeError(error));