I am using concat to call multiple API sequentially, but when error, concat stop call api, so how to get error and continue to call next API, here is my code:
getData() {
concat(...this.data.map(asset =>
this.assetService.requestData({ assetId: asset._id })
))
.pipe(catchError(error => {
console.log(error);
// return of(null);
this.error = error;
return throwError(error);
}))
.subscribe();
}
pipe()function is called