Skip to main content

foundation-store.store

Home > @genesislcap/foundation-store > Store

Store interface​

Store interface.

Signature:

export interface Store 

Remarks​

The public interface available on the injected store fragment.

Properties​

Property

Modifiers

Type

Description

errors

readonly

ErrorMap<EventDetailMap>

Contains any errors the store may have, see ErrorMap.

name?

readonly

string

(Optional) The name of the store fragment.

Methods​

Method

Description

addStoreFragments(storeFragments)

Lazily add store fragments.

binding(token, subscriberChangeCallback, isVolatileBinding, context)

An api to allow the observation of values and arbitrary bindings outside the template engine.

bindingAsRx()

An api to allow the observation of values and arbitrary bindings as Rx observables.

bindingAsRx(key)

bindingAsRx(getter)

bindingAsRx(token)

removeStoreFragments(storeFragments)

Lazily remove store fragments.