kazupon / vue-validator

:white_check_mark: Validator component for Vue.js
MIT License
2.19k stars 431 forks source link

How to use without module loading ? #313

Closed valeriob closed 7 years ago

valeriob commented 7 years ago

Something like Vue.use(VueValidator); ?

thanks

sqal commented 7 years ago

It installs itself automatically, you don't need to do Vue.use(validator) https://github.com/vuejs/vue-validator/blob/dev/src/index.js#L18

kazupon commented 7 years ago

sorry, our poor documentation. http://vuejs.github.io/vue-validator/en/installation.html vue-validator is providing same as the vue.js installation.

valeriob commented 7 years ago

Oh thanks, then i must be doing something wrong : using vuejs v1.0.22 and vue.validator 1.4.4 i get this error message with this html

vue.js:1018 [Vue warn]: Failed to resolve directive: validatewarn @ vue.js:1018resolveAsset @ vue.js:1936compileDirectives @ vue.js:7483compileElement @ vue.js:7095compileNode @ vue.js:7051compileNodeList @ vue.js:7234compileNodeList @ vue.js:7235compileNodeList @ vue.js:7235compileNodeList @ vue.js:7235compile @ vue.js:6837FragmentFactory @ vue.js:3931bind @ vue.js:4010Directive._bind @ vue.js:8277linkAndCapture @ vue.js:6880compositeLinkFn @ vue.js:6856Vue._compile @ vue.js:8563Vue.$mount @ vue.js:9398Vue._init @ vue.js:2460Vue @ vue.js:9462(anonymous function) @ 257:361

Is there some rule to use some validator version with vue version ? Thanks,