diff options
Diffstat (limited to 'node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js')
| -rw-r--r-- | node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js b/node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js new file mode 100644 index 0000000..42ae70c --- /dev/null +++ b/node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js @@ -0,0 +1,9 @@ +import { BehaviorSubject } from '../BehaviorSubject'; +import { ConnectableObservable } from '../observable/ConnectableObservable'; +export function publishBehavior(initialValue) { + return function (source) { + var subject = new BehaviorSubject(initialValue); + return new ConnectableObservable(source, function () { return subject; }); + }; +} +//# sourceMappingURL=publishBehavior.js.map
\ No newline at end of file |
