-
Notifications
You must be signed in to change notification settings - Fork 0
Day 05 Rxjs Operators
Kobi Hari edited this page Jun 28, 2021
·
4 revisions
rxjs-colors | Colors search engine using rxjs operators |
ex4-solution | Solution to exercise 4 |
- We talked about the concept of operators in math, strings and arrays
- We understood that RxJS operators create observables.
- We saw 4 documentation web sites that serve as reference guide for reactive operators
- We covered some simple factory operators:
- We covered some pipeable operators
- We have covered some combining operators
- We created an example that uses observable to convert color search keyword into a list of matching results (colors)
- We Understood that the
map
operator cannot be used when we apply an asyncronous function on each event because it creates an Observable of Promises - We saw how to use
mergeMap
andswitchMap
as asynchronous alternative for map when using async projections-
mergeMap(x => observable)
is actually short formap(x => observable), mergeAll()
-
switchMap(x => observable)
is actually short formap(x => observable), switchAll()
-
- We understood the difference between mergeMap and switchMap