Skip to content

Instantly share code, notes, and snippets.

@mrtampan
Created January 26, 2020 17:43
Show Gist options
  • Save mrtampan/f6105e3cf0a0798213da6ab2292ca7a3 to your computer and use it in GitHub Desktop.
Save mrtampan/f6105e3cf0a0798213da6ab2292ca7a3 to your computer and use it in GitHub Desktop.
komponen.vue
import { required, minLength } from 'vuelidate/lib/validators'
export default {
data() {
return {
username: '',
password: ''
}
},
validations: {
username: {
required,
minLength: minLength(4)
},
password: {
required,
minLength: minLength(4)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment