【发布时间】:2021-09-01 11:59:07
【问题描述】:
我想连接 tow api 调用。我如何在这段代码上使用 ConcatMap ?
getHIndices(code) {
this.api.getInstrumentHistoryIndices(code, '3M')
.subscribe((response: {}) => {
this.prepareDataForHistory(response);
});
setTimeout(() => {
this.api.getInstrumentHistoryIndices(code, '5Y')
.subscribe((response: {}) => {
this.prepareDataForHistory2(response);
});
}, 300);
}
【问题讨论】:
标签: angular rxjs httpclient concatmap