[Vuejs]-Calling a method from a vue bootstrap button stops page rendering

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>

Leave a comment