Thursday, 17 January 2019

angular 6 Observable .




https://angular.io/guide/rx-library


switchmap
https://angular-2-training-book.rangle.io/handout/http/search_with_switchmap.html
switchmap in detail:
https://blog.angular-university.io/rxjs-switchmap-operator/

flatmap
https://angular-2-training-book.rangle.io/handout/http/search_with_flatmap.html


switchmap vs mergemap
https://medium.com/@vdsabev/the-simple-difference-between-rxjs-switchmap-and-mergemap-397c311552a5


ForkJoin   (parallel)
https://coryrylan.com/blog/angular-multiple-http-requests-with-rxjs
https://www.metaltoad.com/blog/angular-2-http-observables-and-concurrent-data-loading


forkjoin . + flatmap
https://blog.danieleghidoli.it/2016/10/22/http-rxjs-observables-angular/




delay
https://www.learnrxjs.io/operators/utility/delay.html
n RxJS 6+
import { of } from "rxjs";
import { delay } from "rxjs/operators";

fakeObservable = of('dummy').pipe(delay(5000));

interval
https://www.learnrxjs.io/operators/creation/interval.html

No comments:

Post a comment