docs(angular): update transformation content (#6946)

pull/6977/head
J. Degand 3 months ago committed by GitHub
parent 733e282454
commit e258c3b668
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 15
      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: 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 - **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 - **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 - **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 - **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 - **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. 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@map](https://rxjs.dev/api/operators/map)
- [@official@mergeMap](https://rxjs.dev/api/operators/mergeMap) - [@official@mergeMap](https://rxjs.dev/api/operators/mergeMap)
- [@official@switchMap](https://rxjs.dev/api/operators/switchMap) - [@official@switchMap](https://rxjs.dev/api/operators/switchMap)
- [@official@concatMap](https://rxjs.dev/api/operators/concatMap) - [@official@concatMap](https://rxjs.dev/api/operators/concatMap)
- [@official@exhaustMap](https://rxjs.dev/api/operators/exhaustMap) - [@official@exhaustMap](https://rxjs.dev/api/operators/exhaustMap)
- [@video@switchMap vs mergeMap vs concatMap vs exhaustMap practical guide](https://youtu.be/40pC5wHowWw) - [@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/

Loading…
Cancel
Save