1👍
I don’t know what’s happening to your errors but I made a quick fiddle based on your code and I get this error in the console
avoid using JavaScript keyword as property name: "delete"
Raw expression: @click="delete"
I suggest you change your method name to a non-js keyword, perhaps deleteSkill.
new Vue({
el: "#app",
methods: {
delete() {
console.log("Delete");
}
}
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<div id="app">
<button type="button" @click="delete">DELETE</button>
</div>
- [Vuejs]-How update nested object array value directly by v-model in VUE?
- [Vuejs]-Setting data properties on create to use in prop
Source:stackexchange.com