Start your All-Access Pass to unlock this challenge
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