Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: plugin class #1645

Merged
merged 1 commit into from Oct 11, 2018
Merged

refactor: plugin class #1645

merged 1 commit into from Oct 11, 2018

Conversation

logaretm
Copy link
Owner

This refactors the plugin to use a class to install itself and to hold its config and dependencies. It also allows using the plugin programmatically without installing it. Much like VueI18n.

This allows configuring vee-validate without having to call Vue.use. Which helps using i18n with the verify API.

import VeeValidate from 'vee-validate';

const vee = new VeeValidate({
  // config...
});

closes #1638

@logaretm logaretm merged commit 9cefec1 into master Oct 11, 2018
@logaretm logaretm deleted the refactor-plugin branch October 23, 2018 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

validator.verify does not use i18n
1 participant