A
A
Alexander2020-09-17 19:38:49
Vue.js
Alexander, 2020-09-17 19:38:49

How to catch any event?

Subject.

Those. i want something like v-on:*="handler"
For example:

<component
          v-bind:is="comp"
          v-bind="props"
          v-on:*="handler"
        ></component>

That any event emitted in comp was transferred to handler

How to achieve?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2020-09-17
Madzhugin @Suntechnic

Isn't that what you need? - $listeners

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question