Answer the question
In order to leave comments, you need to log in
Why is click not working in vue?
When I decided to link the site with vue, of course, I understood that there would be some problems in understanding, but I didn’t think that I would have to run for help for every answer.
Moreover, Google, what off documentation give advice that does not help at all))
Why doesn't @click work?
Vue.component('comment', {
template: '<button @click="reply">→</button>',
props: {
model: {
type: Array,
default: function() {
return [];
}
},
},
methods: {
reply: function() {
alert(1);
}
}
});
Answer the question
In order to leave comments, you need to log in
Is it possible to see more code? Because what you showed by itself - works .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question