v-on can be used to handle interaction with elements in your template. Modifiers like
prevent can be used in place to
stopPropagation. Vue.js can also capture key bindings such as
What does the .prevent do, exactly? Why is it added in the end?
If you run the code on CodeSandbox and remove the prevent modifier, you'll notice that the form submission causes a page reload.