Open mikevelez opened 5 years ago
You need to also import {Validator} from 'simple-vue-validator'
in the file that uses it.
I also get this, I tried importing Validator as mentioned above but no luck Property or method "validation" is not defined on the instance but referenced during render
That might be because you don't have any validators
defined.
import {Validator} from 'simple-vue-validator'
in each component? why not like router? this.$validator
Hello, Did anyone got through with this issue? Please share answer. Thanks.
Same Here . Works in one component only. get the same error when used in another component
validators: {
'form.email': function (value) {
if( value != undefined ) {
return Validator.value(value).required().email();
}
}
},
I'm using Vue2 I ran
npm install --save simple-vue-validator
in my main.js file i have:
In my component script section I added:
and I run this on my submit:
This looks like a great library but it's not working for me =/