Я новичок в Angular2 и Http Observable. У меня есть компонент, который вызывает службу Http и возвращает Observable. Чем я подписываюсь на этот Наблюдаемый, и он отлично работает.
Теперь я хочу, чтобы в этом компоненте после вызова первой службы Http, если вызов был успешным, вызовите другую службу Http и верните это Observable. Таким образом, если первый вызов не является успешным, компонент возвращает это Observable, напротив он возвращает Observable второго вызова.
Итак, вопрос в том, что лучший способ цепочки Http-вызовов? Есть ли элегантный способ, например, как монады?