Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vue prop array default

props: {
    items: {
        type: Array,
        default: () => [1, 2, 3]
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #vue #prop #array #default
ADD COMMENT
Topic
Name
9+2 =