Flag of Ukraine
SymfonyCasts stands united with the people of Ukraine
Next Chapter

Challenge #2 of 2


Q: 

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?

userVoice