publishBehavior.js 454B

1234567891011121314
  1. /** PURE_IMPORTS_START .._BehaviorSubject,._multicast PURE_IMPORTS_END */
  2. import { BehaviorSubject } from '../BehaviorSubject';
  3. import { multicast } from './multicast';
  4. /**
  5. * @param value
  6. * @return {ConnectableObservable<T>}
  7. * @method publishBehavior
  8. * @owner Observable
  9. */
  10. export function publishBehavior(value) {
  11. return function (source) { return multicast(new BehaviorSubject(value))(source); };
  12. }
  13. //# sourceMappingURL=publishBehavior.js.map