Put in order · Vue.js course · Module 2: Template Syntax

v-on Syntax with Method

Arrange the correct v-on syntax for handling a click:

Items to put in order

  • handleClick
  • v-on:click="
  • <button
  • ">Click</button>
Show the answer

Correct order:

  1. <button
  2. v-on:click="
  3. handleClick
  4. ">Click</button>