Form Validation
Recommended package for Form Validations is Vuelidate
.
Get started with the documentation.
Installation of Vuelidate
$ npm install --save vuelidate |
An app plugin file got created: /src/plugins/vuelidate.js
. We edit it:import Vuelidate from 'vuelidate'
export default ({ Vue }) => {
Vue.use(Vuelidate)
}
We then edit /quasar.conf.js
to add the app plugin file to the build:plugins: ['vuelidate']
Note: ensure you add this to the main plugins at the top of the file, not in the framework
plugins section.
Example
<template> |