Handle error in forkJoin on subscribe
问题 I have next function: saveTable() { ... let promises = []; for (index = 0; index < this._TOTAL.length; ++index) { let promise = this.db.object(ref).update(this._TOTAL[index]); promises.push(promise); } Observable.forkJoin(promises).subscribe(() => { this.messagesService.createMessage('success', `Saved`); this.router.navigate(['/dashboard/my-calculations']); }) } How can i handle error in this case? Actually, i just need to use then and catch after all my promises resolve, so using forkJoin