Skip to main content

foundation-store.store.bindingasrx_3

Home > @genesislcap/foundation-store > Store > bindingAsRx

Store.bindingAsRx() method

Signature:

bindingAsRx<TReturn>(token?: ((store: this) => TReturn) | keyof this): RXObservable<TReturn | this>;

Parameters

Parameter

Type

Description

token

((store: this) => TReturn) | keyof this

(Optional) Store property key or a function that returns a value from the store.

Returns:

RXObservable<TReturn | this>

An rxjs Observable of the value.