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:
- The user clicks a button in the DOM
- Vue captures the event via @click
- Modifiers (e.g., .prevent) are applied
- The handler function is called