【发布时间】:2018-09-11 12:24:26
【问题描述】:
我需要在这个 combineLatest 中处理每个函数的错误场景。我将在下面添加代码
const combined = combineLatest(
this.myservice1.fn1(param),
this.myservice2.fn2(),
this.myservice3.fn3());
const subscribe = combined.subscribe(
([fn1,fn2, fn3]) => {
// operations i need to do
},
// how to handle error for fn1, fn2, fn3 separately
(error) => {
}
);
任何帮助将不胜感激!
【问题讨论】:
标签: angular error-handling rxjs combinelatest