Validating data entry with Vuelidate
If your app does anything interactive, it’s likely that it will handle user-entered data, which means you must check whether what the users are providing is valid input.
Input validation libraries can be used to ensure only valid data is entered by the user and provide feedback as soon as data is received. This means we’re validating as soon our user hits that input field!
We’re going to explore HTML form validation in the frontend and the difference between input and value validation. It’s also important to note that no matter the validation in the frontend, it’s no substitute for validation in the backend and of the API endpoints. Our goal in the frontend is to prevent the user from making errors; however, you’ll never stop bad guys from submitting bad data to your app.
We can look at frontend validation through two lenses, as there’s a myriad of solutions out there, but we’ll contrast...