14 lines
454 B
JavaScript
Executable File
14 lines
454 B
JavaScript
Executable File
/** PURE_IMPORTS_START .._BehaviorSubject,._multicast PURE_IMPORTS_END */
|
|
import { BehaviorSubject } from '../BehaviorSubject';
|
|
import { multicast } from './multicast';
|
|
/**
|
|
* @param value
|
|
* @return {ConnectableObservable<T>}
|
|
* @method publishBehavior
|
|
* @owner Observable
|
|
*/
|
|
export function publishBehavior(value) {
|
|
return function (source) { return multicast(new BehaviorSubject(value))(source); };
|
|
}
|
|
//# sourceMappingURL=publishBehavior.js.map
|