Answer the question
In order to leave comments, you need to log in
How to delegate an event in vuejs?
There is a simple example in the docs:
<div id="example-1">
<button v-on:click="counter += 1">+1</button>
<p>Кнопка выше была нажата {{ counter }} раз</p>
</div>
<div v-on:click="counter += 1" id="example-1">
<button>+1</button>
<button>+1</button>
<button>+1</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