Elm spa example header with shared button (on Click) attribute

The way I model this is to have global state and global messages. This global state is updated in the Main and sent down to the view and the update of pages as a form of context.

A very similar pattern is elm-shared-state (formerly elm-taco).

1 Like