Question · Vue.js course · Module 7: Props & Events
Custom validator
How do you add custom validation to a prop?
Answer options
- Through try-catch in the template
- Through a validator function in the prop definition
- Automatically through TypeScript
- Through Vue middleware
You can check the correct answer by solving this task in the CodeWorlds game.