0 comments on “How to get rid of nested Subscriptions using RxJS flatMap and switchMap”

How to get rid of nested Subscriptions using RxJS flatMap and switchMap

"Nested subscriptions are bad programming style". That is, what many programmers tell us. But: how can we get rid of nested subscriptions? In this little step-by-step tutorial, we will demonstrate how to use flatMap to improve an Angular 6 based REST…