Class: Observable<CallbackArgType>
Type Parameters
Type Parameter |
---|
CallbackArgType |
Constructors
new Observable()
new Observable<
CallbackArgType
>():Observable
<CallbackArgType
>
Returns
Observable
<CallbackArgType
>
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
subscriptions | public | Collection <Subscription <CallbackArgType >> | src/core/classes/Observable.ts:19 (opens in a new tab) |
Methods
notify()
notify(
arg
):void
Parameters
Parameter | Type |
---|---|
arg | CallbackArgType |
Returns
void
Defined in
src/core/classes/Observable.ts:21 (opens in a new tab)
removeSubscription()
removeSubscription(
subscription
):boolean
Parameters
Parameter | Type |
---|---|
subscription | string | Subscription <CallbackArgType > |
Returns
boolean
Defined in
src/core/classes/Observable.ts:27 (opens in a new tab)
subscribe()
subscribe(
callback
):Subscription
<CallbackArgType
>
Parameters
Parameter | Type |
---|---|
callback | (arg ) => unknown |
Returns
Subscription
<CallbackArgType
>