foundation-store.store.bindingasrx_2
Home > @genesislcap/foundation-store > Store > bindingAsRx
Store.bindingAsRx() method
Signature:
bindingAsRx<TReturn>(getter: (store: this) => TReturn): RXObservable<TReturn>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
getter |
(store: this) => TReturn |
A function that returns a value from the store. |
Returns:
RXObservable<TReturn>
An rxjs Observable of the value.
Example
const prop1$ = this.store.bindingAsRx(x => x.prop1).subscribe(value => {...});