vuelidate-improver

1.2.3 • Public • Published

vuelidate-improver

dependencies Status

Demo

Example

Installation

  npm i --save vuelidate-improver
  yarn add vuelidate-improver

You can import the library and use as a Vue plugin to enable the functionality globally on all components containing validation configuration.

import Vue from 'vue'
import VuelidateImprover from 'vuelidate-improver'
import Vuelidate from 'vuelidate'
Vue.use(VuelidateImprover);
Vue.use(Vuelidate)

Alternatively it is possible to import a mixin directly to components in which it will be used.

import { validationMixin } from 'vuelidate'
import { validationImproverMixin } from 'vuelidate-improver'
 
var Component = Vue.extend({
  mixins: [validationImproverMixin, validationMixin],
  validations: { ... }
})

Package Sidebar

Install

npm i vuelidate-improver

Weekly Downloads

3

Version

1.2.3

License

ISC

Unpacked Size

19.6 kB

Total Files

17

Last publish

Collaborators

  • athanor