Building the Real Application Chapter 5
}
},
clear () {
this.$refs.form.reset()
}
}
}
</script>
Now, if we try to submit the form with all the fields blank, and the field Movie Genre with
more than 80 characters, we should not be able to submit the form. The form will display
these error messages: