Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SourceSubject<T, U>

A Source whose state can be externally updated.

Type parameters

  • T = any

  • U = T

Hierarchy

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new SourceSubject(state: T, projection: UnaryFn<T, U> | Empty): SourceSubject

Properties

Protected deps

deps: Empty

Protected source

source: T

Accessors

state

  • get state(): U

state$

  • get state$(): Observable<U>

Methods

next

  • next(state: Partial<T>): void

Generated using TypeDoc