Skip to content

Instantly share code, notes, and snippets.

@a4amaan
Created March 9, 2020 18:46
Show Gist options
  • Save a4amaan/bc85581ede8bbe7e73585062cd836db2 to your computer and use it in GitHub Desktop.
Save a4amaan/bc85581ede8bbe7e73585062cd836db2 to your computer and use it in GitHub Desktop.
requiredRule: [v => !!v || "This Field is required."],
if (this.$refs.accountForm.validate()) {
}
<v-form ref="accountForm">
<v-text-field
v-model="account.father_name"
label="Father Name"
:rules="requiredRule"
/>
</v-form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment