Question from the Introduction to RxJS test

Chain 2 observables in RxJS

Easy

[In this context all api requests return an Observable]

I want to chain 2 observables like this

data$.subscribe((data)=>{
fetchOtherData(data).subscribe((otherData)=>{
....
    })
})

Is this a good way to do or can we use an operator to chain these 2 observables?

Author: LiorStatus: Published(Update)Question passed 82 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!