Course Content
Subtitle Guide – Hướng dẫn thêm phụ đề
0/1
21 – Roundup & Next Steps
0/1
Vue – The Complete Guide (incl. Router & Composition API)
About Lesson

In general, you can learn all about prop validation in the official docs: https://v3.vuejs.org/guide/component-props.html

Specifically, the following value types (type property) are supported:

  • String

  • Number

  • Boolean

  • Array

  • Object

  • Date

  • Function

  • Symbol

But type can also be any constructor function (built-in ones like Date or custom ones).

Join the conversation