From e258c3b6688b894b39ad4fceb83ad0fb8bca6dfb Mon Sep 17 00:00:00 2001 From: "J. Degand" <70610011+jdegand@users.noreply.github.com> Date: Tue, 3 Sep 2024 04:15:09 -0400 Subject: [PATCH] docs(angular): update transformation content (#6946) --- .../transformation@kdMJHljMzGA3oRlh8Zvos.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/data/roadmaps/angular/content/transformation@kdMJHljMzGA3oRlh8Zvos.md b/src/data/roadmaps/angular/content/transformation@kdMJHljMzGA3oRlh8Zvos.md index 250d72d0c..f6b81181f 100644 --- a/src/data/roadmaps/angular/content/transformation@kdMJHljMzGA3oRlh8Zvos.md +++ b/src/data/roadmaps/angular/content/transformation@kdMJHljMzGA3oRlh8Zvos.md @@ -2,21 +2,20 @@ 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 +- **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 These are just a few examples of the many methods available in RxJS for transforming the data emitted by an Observable. Each method has its own specific use case, and the best method to use will depend on the requirements of your application. -Here are the official documentation links for the RxJS transformation methods: +Visit the following resources to learn more: +- [@official@RxJs Docs - Operators](https://rxjs.dev/api/operators) - [@official@map](https://rxjs.dev/api/operators/map) - [@official@mergeMap](https://rxjs.dev/api/operators/mergeMap) - [@official@switchMap](https://rxjs.dev/api/operators/switchMap) - [@official@concatMap](https://rxjs.dev/api/operators/concatMap) - [@official@exhaustMap](https://rxjs.dev/api/operators/exhaustMap) - [@video@switchMap vs mergeMap vs concatMap vs exhaustMap practical guide](https://youtu.be/40pC5wHowWw) - -You can find more information and examples on these methods in the official RxJS documentation. Additionally, you can find more operators on https://rxjs.dev/api/operators and you can also find more information on the library as a whole on https://rxjs.dev/