We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include validator from 'vuejs-validators' as a dev-dependency
Automatically apply validator logic/macro methods when rules() method is used.
rules()
Replace validatable parameter Was: form(validatable, data).rules(...) Now: form(data).rules(...)
validatable
form(validatable, data).rules(...)
form(data).rules(...)
Replace form.getErrors() method Was: form.getErrors() Now: form.errors()
form.getErrors()
form.errors()
Replace form.getValidator() method Was: form.getValidator() Now: form.validator()
form.getValidator()
form.validator()
data: () => ({ form: form({ name: 'zak', email: 'zak@cleancode.studio' }) .rules({ name: 'required|min:5', email: 'required|email|min:8' }) .messages({ 'name.required': ':attribute field is required', 'name.min': ':attribute must have at least :min characters', }) });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Include validator from 'vuejs-validators' as a dev-dependency
Automatically apply validator logic/macro methods when
rules()
method is used.Replace
validatable
parameterWas:
form(validatable, data).rules(...)
Now:
form(data).rules(...)
Replace
form.getErrors()
methodWas:
form.getErrors()
Now:
form.errors()
Replace
form.getValidator()
methodWas:
form.getValidator()
Now:
form.validator()
The text was updated successfully, but these errors were encountered: