foundation-store.store.bindingasrx_1
Home > @genesislcap/foundation-store > Store > bindingAsRx
Store.bindingAsRx() method
Signature:
bindingAsRx<TKey extends keyof this>(key: TKey): RXObservable<this[TKey]>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
TKey |
Store property key. |
Returns:
RXObservable<this[TKey]>
An rxjs Observable of that key's value.
Example
const ready$ = this.store.bindingAsRx('ready').subscribe(value => {...});