Last active
August 14, 2017 13:54
-
-
Save Kelin2025/37aa61ee0adf94e8dc7461426cf7dcd4 to your computer and use it in GitHub Desktop.
Problem of vuelidate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
data: () => ({ | |
form: { | |
name: null, | |
surname: null, | |
age: null | |
} | |
}), | |
validations: { | |
form: { | |
name: { required }, | |
surname { required }, | |
age: { | |
required, | |
min: val => val >= 18 | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment