subba16 / rxjs

0 stars 0 forks source link

rxjs #6

Open subba16 opened 4 years ago

subba16 commented 4 years ago

To recap: map is for mapping ‘normal’ values to whatever format you need it to be. The return value will be wrapped in an Observable again, so you can keep using it in your data stream.

Use mergeMap if you simply want to flatten the data into one Observable,

use switchMap if you need to flatten the data into one Observable but only need the latest value and

use concatMap if you need to flatten the data into one Observable and the order is important to you.

image

image

image

image

image

subba16 commented 4 years ago

forkJoin gives data back in Array

image

image

subba16 commented 4 years ago

concat order

image image

subba16 commented 3 years ago

filter is a higher order observable returns a function that takes an observable and returns another output observable

image image

subba16 commented 3 years ago

image image

subba16 commented 3 years ago

image

subba16 commented 3 years ago

image image

subba16 commented 3 years ago

image image

subba16 commented 3 years ago

image

subba16 commented 3 years ago

image image

subba16 commented 3 years ago

image image image

subba16 commented 3 years ago

Switch Map

https://youtu.be/rUZ9CjcaCEw image

image

image