Question · Vue.js course · Module 2: Template Syntax

The .prevent Modifier

What does .prevent do in @submit.prevent?

Answer options

  • Stops propagation
  • Delays execution
  • Calls event.preventDefault()
  • Blocks the event permanently
Show the answer

Correct answer:

  • Calls event.preventDefault()