I'm trying to figure how you can pick up an event that is triggered inside the <slot/>
component.
Here is my component
<template>
<button @click"$emit('event')">Submit</button>
</template>
It emits an event I want to capture in the parent layout's slot.
<template>
<slot @event="doThis"/>
</template>
How do I achieve this. Some of my reading has lead me to scoped slots but I'm not 100% sure.