Transformation
Last updated
What is Transformation?
In RxJS, "transformation" refers to the process of modifying or manipulating the data emitted by an Observable. There are a variety of methods available in RxJS that can be used to transform the data emitted by an Observable, including:
- map: applies a function to each item emitted by the Observable and emits the resulting value
- mergeMap: applies a function to each item emitted by the Observable, and then merges the resulting Observables into a single Observable
- switchMap: applies a function to each item emitted by the Observable, and then switches to the latest resulting Observable
- concatMap: applies a function to each item emitted by the Observable, and then concatenates the resulting Observables into a single Observable
- exhaustMap: applies a function to each item emitted by the Observable, but ignores subsequent emissions until the current Observable completes
Free resources to learn Transformation
- Official docsThe RxJS Library
- Official docsMerge
- Official docsConcat
- Official docsZip
- Official docsswitchMap
- Official docsconcatMap
- Official docsexhaustMap
- VideoswitchMap vs mergeMap vs concatMap vs exhaustMap practical guide
More in stage 14: RxJS Basics
Transformation: common questions
Can I learn Transformation in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Transformation in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Transformation tutorial for beginners?
It is lesson 86 of 158 in the free Angular roadmap, in stage 14, RxJS Basics. If you are new to Angular, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.