Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Vue.js Form Validation

Get access to this course, 18 others, and future Vue.js courses!

Conditional Validation

In this lesson, we'll learn how to apply a validation rule only if a condition is met.

In our case, we want to make sure the user leaves his email if he opts in to our newsletter.