Controlling your form using VeeValidate
In the previous section, we learned how to handle user input such as form fields using v-model
, but in real life, handling forms is a little more complicated than just setting two-way binding.
In fact, a complete form will include complex validation and error handling, just to name a couple. Even if we could achieve this feature manually using Vue.js, we would probably end up investing a lot of time and effort in something that is well handled by an external package. For this reason, in this section, we are going to introduce VeeValidate, which is a package aimed at making form development easy.
On the official website (https://vee-validate.logaretm.com/), VeeValidate is described as follows:
Using an external package is not required for every single form you will ever write, but it is useful...