Transformation Operators
Transformation Operators
- Transform values emitted from the source observable
- Some work on higher order observables
- The
map
operator is a transformation operator!
The scan
Operator
- Similar to
Array#reduce()
- Evaluate each item emitted from the source observable while maintaining an accumulated value
Higher-Order Observables
- Note that the type of is now
Observable<Observable<number>>
- This is called a higher-order observable
- It's an observable of observables!
- The
mergeAll
operator "flattens" the observable
- It subscribes to each observable emitted by the
map
function
The mergeMap
Operator
- Short hand for
map
+mergeAll
- Map items from the source observable to new observables, then flatten the result