Skip to content

Instantly share code, notes, and snippets.

Avatar

Gavin Lynch gavinlynch

View GitHub Profile
View simple validator
/**
* Vue Plugin instance for Validation.
* Use as:
* import Validation from './plugins/validation.js';
* Vue.use(Validation, options);
* Validation.add({
* customValidation: {
* message: 'Message when invalid.',
* comparison: (newer, older) => older === newer,
* validate: function (value) {
You can’t perform that action at this time.