Full-Stack Web Development with Vue.js and Node

(singke) #1
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:

Free download pdf