node/rxjs/dist/esm5/internal/operators/publishBehavior.js
raw| 1 | import { BehaviorSubject } from '../BehaviorSubject'; |
| 2 | import { ConnectableObservable } from '../observable/ConnectableObservable'; |
| 3 | export function publishBehavior(initialValue) { |
| 4 | return function (source) { |
| 5 | var subject = new BehaviorSubject(initialValue); |
| 6 | return new ConnectableObservable(source, function () { return subject; }); |
| 7 | }; |
| 8 | } |
| 9 | //# sourceMappingURL=publishBehavior.js.map |