T
T
tyoma_koder2021-06-26 14:30:58
Vue.js
tyoma_koder, 2021-06-26 14:30:58

Why is the click event not working on a vue v2 component?

setting the key attribute in v-for doesn't change anything
https://jsfiddle.net/morskaya_ulitochka/jy3pamct/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2021-06-26
@tyoma_koder

var vm = new Vue({
    el: "#txt",

new Vue({ el: '#txt' })

What for?
Remove the second one, place the registration of the global component before the first one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question