foundation-store.abstractstore.binding
Home > @genesislcap/foundation-store > AbstractStore > binding
AbstractStore.binding() method
An api to allow the observation of values and arbitrary bindings outside the template engine.
Signature:
binding<TReturn = any, TParent = any>(token: ((store: this) => TReturn) | keyof this, subscriberChangeCallback?: SubscriberChangeCallback<TReturn> | undefined, isVolatileBinding?: boolean, context?: ExecutionContext): BindingObserver<this, TReturn, TParent>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
token |
((store: this) => TReturn) | keyof this |
A store lookup token which can take various forms. |
|
subscriberChangeCallback |
SubscriberChangeCallback<TReturn> | undefined |
(Optional) SubscriberChangeCallback |
|
isVolatileBinding |
boolean |
(Optional) Indicates the binding is volatile. |
|
context |
ExecutionContext |
(Optional) |
Returns:
BindingObserver<this, TReturn, TParent>
An rxjs Observable