merge
signature: merge(input: Observable): Observable
merge(input: Observable): Observable
Turn multiple observables into a single observable.
:bulb: This operator can be used as either a static or instance method!
:bulb: If order not throughput is a primary concern, try concat instead!
Examples
Example 1: merging multiple observables, static method
( StackBlitz | jsBin | jsFiddle )
Example 2: merge 2 observables, instance method
( StackBlitz | jsBin | jsFiddle )
Related Recipes
[Save Indicator]('../../recipes/save-indicator.md)
Additional Resources
:newspaper: - Official docs
Handling multiple streams with merge
:video_camera: :dollar: - John Linquist
Sharing network requests with merge
:video_camera: :dollar: - André Staltz
:video_camera: :dollar: - André Staltz
:video_camera: - Kwinten Pisman
:file_folder: Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/merge.ts
Last updated