Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a subscription to a service. This interface allows getting the current value of the service and getting notifications on when the value is changed.

Type parameters

Hierarchy

  • ISubscription

Index

Properties

Optional Readonly value

Returns the current value of the service

Methods

attach

  • Attaches the given callback to the "change" event.

    Parameters

    Returns void

detach

  • Detaches the given callback from the "change" event.

    Parameters

    Returns void

unsubscribe

  • unsubscribe(): void
  • Deletes this subscription

    Returns void