share
signature: share(): Observable
share(): Observable
Share source among multiple subscribers.
:bulb: share is like multicast with a Subject and refCount!
Examples
Example 1: Multiple subscribers sharing source
( StackBlitz | jsBin | jsFiddle )
Related Recipes
[Save Indicator]('../../recipes/save-indicator.md)
Additional Resources
:newspaper: - Official docs
:video_camera: :dollar: - John Linquist
:file_folder: Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/share.ts
Last updated