Vee-validate: Conflict with formly-js/vue-formly

Created on 7 May 2018  ยท  2Comments  ยท  Source: logaretm/vee-validate

Versions

  • "vee-validate": "2.0.0-rc.7"
  • vue: 2.5.7
  • "vue-formly": "^2.5.8",

Describe the bug
conflict with global computed var fields.

To Reproduce
Steps to reproduce the behavior:

  1. use this plugin
  2. use formly-js/vue-formly
  3. init formly-js/vue-formly and send var fields

Additional context
all of discussion in https://github.com/formly-js/vue-formly/issues/34#issuecomment-386906710

โ” question

Most helpful comment

You can change the computed errors and fields properties names using the config:

import Vue from 'vue';
import VeeValidate from 'vee-validate';

const config = {
  errorBagName: 'errors'
  fieldsBagName: 'fields'
};

Vue.use(VeeValidate, config);

Refer to the config reference

All 2 comments

You can change the computed errors and fields properties names using the config:

import Vue from 'vue';
import VeeValidate from 'vee-validate';

const config = {
  errorBagName: 'errors'
  fieldsBagName: 'fields'
};

Vue.use(VeeValidate, config);

Refer to the config reference

very thank you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HunterJS-bit picture HunterJS-bit  ยท  3Comments

kidox picture kidox  ยท  3Comments

YamenSharaf picture YamenSharaf  ยท  3Comments

Youdaman picture Youdaman  ยท  3Comments

Hoagiex picture Hoagiex  ยท  3Comments