Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial
Learn Vue.js with Vue School #1 SOURCE OF VUE.JS KNOWLEDGE

The Vue.js Master Class

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

Start Learning

Already got an account? Log in

Vue.js Custom Prop Validation

In this vue.js tutorial, we'll take a look at the custom prop validation, which is an exciting and convenient feature of Vue.js. With a custom prop validator, you can create custom logic to validate that the component received precisely what it needs.

In this lesson, we'll create a custom validator for our post prop, and also throw errors in the console if the post is invalid.