I have this structure
<parent> <middle> <child></child> </middle> </parent>
middle is a wrapper component that uses
<component :is > to load components.
Now I would like to have any event emitted from
child to go to
I could have
middle to $on
child events individually and $emit back to
parent, but I wouldn’t know the events in advance.
Is there any way general way to $on any event on a component?