Vue.js Form Validation
Plans from $25/month

This lesson is for members. Join us?

Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!

🚧 NOTICE: You are watching a Vue.js 2 lesson

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.