How to use the vee-validate/dist/vee-validate.minimal.esm.js.Validator.extend function in vee-validate

To help you get started, we’ve selected a few vee-validate examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github techlab23 / task-management-app / src / plugins / vee-validate.js View on Github external
import Vue from "vue"
import { Validator, install as VeeValidate } from "vee-validate/dist/vee-validate.minimal.esm.js"
import { required } from "vee-validate/dist/rules.esm.js"
import veeEn from "vee-validate/dist/locale/en"

// // Add the rules you need.
Validator.extend("required", required)

// // Merge the messages.
Validator.localize("en", veeEn)

// install the plugin
Vue.use(VeeValidate)