Skip to main content
Go to Latest
class BehaviorSubject
extends Subject<T>
import { BehaviorSubject } from "https://deno.land/x/ldkit@v0.4.1/library/rxjs.ts";

A variant of Subject that requires an initial value and emits its current value whenever it is subscribed to.

Constructors

new
BehaviorSubject(_value: T)

Properties

private
_value
readonly
value: T

Methods

next(value: T): void