Sharing data

Three ways for components to share data.

1. A store: use cart

The cart has 0 items (total $0). The badge in the header reads the same store.

2. share / receive

This page shares settings. The theme is light.

I am a child component. I received settings.theme = 'light'.

3. The bus: bus.send / bus.on

  • No messages yet. Press a button above or in the child.