Is it possible to emit a custom event from the directive in the component to which this directive is attached.
I was expecting it to work as described
Your solution was not working for me. Indeed vnode.data.on was always undefined
What worked to trigger an event was
vnode.child.$emit('myevent');
Hope this helps.