v-validate

Input validation for Vue
1,283 10
Install
npm install v-validate
Latest Version:0.1.4
License:MIT
Last Updated:Jun 2, 2017
Links: GitHub  ·  npm
Maintainer: ovanschie

Vue Validate

Latest Version on NPM Software License

Input validation for Vue 1.0

Install

You can install the package via yarn:

$ yarn add v-validate

If you use webpack:

Vue.use(require('v-validate'));

If you don't, just include 'v-validate.js' somewhere in your page.

Usage

Use the v-validate directive on your input. Example:

<input type="text" v-model="name" v-validate="{required: true, minLength: 5}">

Classes valid or invalid will be appended to the input.

See it in action

Play with the options in JSFiddle

Contributing

Contributions are welcome, thanks to y'all :)

About Appstract

Appstract is a small team from The Netherlands. <3 Laravel, Vue and other awesome tools.

Buy Us A Beer

Would be awesome if you would buy us a beer! Or a lot of beer :)

License

The MIT License (MIT). Please see License File for more information.

Related Packages

Version History

Version Released License
0.1.4 MIT
0.1.3 MIT
0.1.2 MIT
0.1.1 MIT
0.1.0 MIT