IObservable<T>
Interface
Type parameters
Name |
---|
T |
Methods
subscribe
Subscribe to changes
Signature
subscribe(callback: Function) => void
Parameters
Name | Type | Description |
---|---|---|
callback | (value: T) => void | callback function to be evoked when observed value changes |
Returns
void
unsubscribe
Unsubscribe from changes
Signature
unsubscribe(callback: Function) => void
Parameters
Name | Type | Description |
---|---|---|
callback | (value: T) => void | callback function to be unsubscribed |
Returns
void