Answers for "vue disable click on div"

3

vue disabled

<input type="text" :disabled="validated == 1">
Posted by: Guest on April-20-2021
0

on:click.prevent in vue

const app = new Vue({
  data: () => ({}),
  methods: {
    myMethod: function myMethod(ev) {
      console.log(ev); // MouseEvent { ... }
    }
  },
  template: `
    <div>
      <a v-on:click.prevent="myMethod($event)" href="/">Click Me</a>
    </div>
  `
});
Posted by: Guest on October-28-2021

Browse Popular Code Answers by Language