Answers for "von click"

0

von click

<div id="example-1">
  <button v-on:click="counter += 1">Add 1</button>
		<!-- Or -->
  <button @click="counter += 1">Add 1</button>
  <p>The button above has been clicked {{ counter }} times.</p>
</div>

var example1 = new Vue({
  el: '#example-1',
  data: {
    counter: 0
  }
})
Posted by: Guest on October-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language