Options
All
  • Public
  • Public/Protected
  • All
Menu

observable and assignable proxy to concrete value

Observers can be registered with instances of this class so that they are notified when a different value is assigned to such instances. Client code can copy the contained value or pass it to functions via implicit conversion. note it is not possible to call non-const method on the returned value. This is by design, as this possibility would necessarily bypass the notification code; client code should modify the value via re-assignment instead.

Type parameters

  • T

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • t: T

    Returns ObservableValue

Properties

Private _observable

_observable: Observable

Private _value

_value: T

Methods

get

  • Returns Observable

set

  • set(t: T): void
  • Parameters

    • t: T

    Returns void

value

  • value(): T
  • Returns T