vuelidate email validation code example
Example 1: vuelidate custom validation
const price_greater = (value, vm) => (value >= vm.min_price);
validations: {
user_price: {
required,
price_greater
}
}
Example 2: vuelidate require if
required: requiredIf(()=> { return condition })