Answer the question
In order to leave comments, you need to log in
Vue.js: How to subscribe to an event on the root element of a component, only on one instance?
There is a repeatedly used component of the button.
It is necessary to assign a method to each of the buttons when pressed.
It is not possible to subscribe to the Click event using this implementation:
<v-icon-button v-on:click="dosomething"></v-icon-button>
<button class="icon-button"><slot></slot></button>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question