Giter VIP home page Giter VIP logo

Comments (5)

Julien76 avatar Julien76 commented on May 13, 2024 6

Hi,
Could you please post a simple example on how Vuelidate can be used with Vuex?
I can't get to make it works.
Thanks.

from vuelidate.

shentao avatar shentao commented on May 13, 2024 3

It depends on what do you understand by supported.
Vuelidate doesn’t interfere with Vuex in any way. If you use mapState or mapGetters in your component, you can declare validations for that fragments of the state / getters, just like you would for data declared in data () { return { . } } or computed properties.

In other words – you can declare validations for whatever value as long as it is available on the component’s this.

Does that answer you question? :)

from vuelidate.

brokolja avatar brokolja commented on May 13, 2024

Perfect. Thx - nice work!

from vuelidate.

xxRockOnxx avatar xxRockOnxx commented on May 13, 2024

@shentao I understand what you mean and everything's fine but how can I $touch a property on input or change if it's on another component? Is it possible to make $v global or something like that in order for child component to do $touch ?

Right now I can only do touch on submit from the parent component.

from vuelidate.

odranoelBR avatar odranoelBR commented on May 13, 2024

Yea um needing something similar. 5 childs components with thers validations, mas my parent Just react when all them are valor.

from vuelidate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.