You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -86,3 +86,77 @@ This is a verbose example designed to show how Bootstrap-Vue and Vuelidate inter
86
86
87
87
<!-- form-validation-1.vue -->
88
88
```
89
+
90
+
## vee-validate
91
+
92
+
[vee-validate](https://github.com/baianat/vee-validate) is a plugin for Vue.js that allows you to validate input fields and display errors. It has full support for `vue-i18n` and provides fairly good out of the box error messages.
93
+
94
+
Same example as above just modified for vee-validate:
95
+
96
+
```html
97
+
<template>
98
+
<b-form@submit="onSubmit">
99
+
<b-form-groupid="exampleInputGroup1"
100
+
label="Name"
101
+
label-for="exampleInput1">
102
+
<b-form-inputid="exampleInput1"
103
+
type="text"
104
+
v-model="form.name"
105
+
v-validate="{required: true, min:2}"
106
+
:state="validateState('form.name')"
107
+
aria-describedby="input1LiveFeedback"
108
+
placeholder="Enter name" />
109
+
<b-form-invalid-feedbackid="input1LiveFeedback">
110
+
This is a required field and must be at least 3 characters
0 commit comments