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

Event Handling Process in Vue

Order the steps of handling a click event in Vue:

Items to put in order

  • The handler function is called
  • The user clicks a button in the DOM
  • Vue captures the event via @click
  • Modifiers (e.g., .prevent) are applied
Show the answer

Correct order:

  1. The user clicks a button in the DOM
  2. Vue captures the event via @click
  3. Modifiers (e.g., .prevent) are applied
  4. The handler function is called