Options
All
  • Public
  • Public/Protected
  • All
Menu

Object that notifies its changes to a set of observers

Hierarchy

Implemented by

Index

Constructors

constructor

  • Returns Observable

Properties

_isDisposed

_isDisposed: boolean = false

_observers

_observers: Set<Observer>

Accessors

isDisposed

  • get isDisposed(): boolean
  • Returns boolean

Methods

dispose

  • dispose(): void
  • Returns void

notifyObservers

  • notifyObservers(): void
  • This method should be called at the end of non-const methods or when the programmer desires to notify any changes.

    Returns void

registerObserver

  • Parameters

    Returns void

unregisterObserver

  • Parameters

    Returns void