Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Access to validation components #16

Open
smajl opened this issue Jul 12, 2019 · 1 comment
Open

Access to validation components #16

smajl opened this issue Jul 12, 2019 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@smajl
Copy link

smajl commented Jul 12, 2019

Does this module provide easy access to validation components (ValidationObserver, ValidationProvider and their instances)? I don't think so, at least I was unable to import them successfully from nuxt-validate therefore I ended up using vee-validate "manually" as my custom plugin, so I can do this now:

import { Component, Vue } from 'vue-property-decorator'
import { ValidationObserver, ValidationObserverInstance, ValidationProvider } from 'vee-validate'

@Component({
  components: {
    ValidationObserver,
    ValidationProvider,
  },
})
export default class Login extends Vue {
  $refs: {
    form: ValidationObserverInstance;
  }
  ...
}

Am I missing something? If not, would it be possible to make this available through nuxt-validate as well?

@lewyuburi lewyuburi added enhancement New feature or request help wanted Extra attention is needed labels Jul 12, 2019
@lewyuburi
Copy link
Owner

Maybe I can help this weekend, I need to documente me about ValidationObserver, ValidationObserverInstance and ValidationProvider 🤔

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants