[Vuejs]-VeeValidate check for errors in entire scope

0👍

By default, each component gets its own instance of a vee validator (and therefore errors too). If you want to access errors from a different scope, you will need to use inject to pass the parent validator instance to the child components so that they share a validator instance:

export default {
  inject:[ '$validator'],
  // ...
};

ref – https://github.com/baianat/vee-validate/issues/1774

Leave a comment