custom validation vuelidate code example
Example: vuelidate custom validation
const price_greater = (value, vm) => (value >= vm.min_price);
validations: {
user_price: {
required,
price_greater
}
}
const price_greater = (value, vm) => (value >= vm.min_price);
validations: {
user_price: {
required,
price_greater
}
}