Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 1.67 KB

README.md

File metadata and controls

32 lines (29 loc) · 1.67 KB

Module 06 - RxJS Operators

Projects

fun-with-rx-operators RxJS Operators
colors-rx A practical example using Operators

Introduction to RxJS operators

  • 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 operators
  • We created an example that uses observable to convert color search keyword into a list of matching results (colors)
  • We used the map operator to convert user input to results

Using async mapping operators

  • We have converted our service into an asyncronous one by returning a Promise instead of the results
  • We saw that now our map operators returns an Observable<Promise<Results>>
  • We learned about the term Higher Order Observables
  • We saw that there are several flatenning operators that reduce the order of the observable
  • We used mergeAll and switchAll after the map
  • We understood that switchMap is short for map and then switchAll