The Delightful World of Vue
v-bind: Dynamic Attributes
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 2 / 2

Say we have a component with a prop title defined using the simple syntax:

props: ['title'],

But now, we'd like Vue to be able to do some validation for us when the component is rendered: we want title to accept a String and to be required. How can we do this?

Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.