Question · Vue.js course · Module 5: Events & Forms
.prevent modifier
What does the .prevent modifier do in @submit.prevent?
Answer options
- Prevents the handler from being called
- Blocks all events on the page
- Calls event.preventDefault() - prevents page reload
- Prevents form validation
You can check the correct answer by solving this task in the CodeWorlds game.