Answer the question
In order to leave comments, you need to log in
How to sequentially execute two or more subscribe?
I have this code (it works):
deleteRecord(event: IEvent): void {
this.dialog.confirm(
'Подтвердите Ваше действие',
`Подтвердите удаление записи <strong>${event.title}</strong>`)
.subscribe(
result => {
if (result) {
this.deleteService.deleteRecord(event.id)
.subscribe(
success => {
this.alert.info(`Событие - ${event.title} удалено!`);
this.logger.log('delete success', success);
},
error => {
this.logger.error('delete error', error);
}
);
}
}
);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question