我的后端经常将数据作为可观察到的RxJS 5中的数组返回(我使用的是角2)。items => console.log(items)) .mergeMaptransforming each item using RxJS operators.
// Most likely, I will project the it
我正在使用angular6,并且有一个类可以将我的API令牌加入到每个http请求中。当getIdToken()成功返回时,一切都会正常,但如果它返回不成功,我的应用程序将停止。当getToken失败时,我如何处理mergeMap函数?import { Injectable } from '@angular/core';
import { H