Matestack's Vue.js APIs [WIP]
Event Hub
Matestack offers an event hub, which can be used to communicate between components.
Emitting events
app/matestack/components/some_component.js
Use MatestackUiCore.eventHub.$emit(EVENT_NAME, OPTIONAL PAYLOAD)
Receiving events
app/matestack/components/some_component.js
Make sure to cancel the event listener within the beforeDestroy
hook!
Last updated