mergeMap
to sequentially perform the HTTP calls.
However, since the second and third requests rely on the user id obtained from the first request, we can instead:mergeMap
to handle the inner observable, as we did in the previous lesson. However, this time, we’ll use the forkJoin
operator to subscribe to two http.get
calls and receive a combined result containing both sets of data.