Emiting values to slice-zone

To pass props down to a slice component using slice-zone you need to use context. Is there in the same way a way of passing props up to the slice-zone using emit?

Hey Erik,

You could try something like this:

// slice component
this.$nuxt.$emit('eventName', value)
// page/component etc..
this.$nuxt.$on('eventName', (value) => {
    ...
})
1 Like

Thanks, that did the trick! :slightly_smiling_face:

1 Like