forkJoin
Introduction
Section titled “Introduction”forkJoin waits for all source Observables to complete, then emits an array of their last values.
Example
Section titled “Example”forkJoin({ users: this.http.get('/api/users'), products: this.http.get('/api/products'), config: this.http.get('/api/config')}).subscribe(({ users, products, config }) => { // All data available simultaneously});Summary
Section titled “Summary”forkJoin is the Observable equivalent of Promise.all.”