Documentation
    Preparing search index...

    Class ObservableObjectAbstract

    A base class for objects that notify subscribers when their properties change.

    • Do not confuse with Observable<T> from rxjs library. The latter represents a asynchronous stream of data.
    • Derived classes should call _notifyPropertyChanged whenever a property value changes.
    class Person extends ObservableObject {
    private _name: string = "";

    public get name(): string { return this._name; }
    public set name(value: string) {
    if (this._name !== value) {
    this._name = value;
    this._notifyPropertyChanged("name");
    }
    }
    }

    Implements

    Index

    Constructors

    Methods

    • Notifies subscribers that one or more properties have changed.

      Parameters

      • ...propertyNames: "onPropertyChanged"[]

        The names of the properties that changed.

      Returns void

      Call this method from derived classes after changing property values. If no property names are provided, it indicates that all properties may have changed.