send prop as function vue js code example
Example 1: vue prop string or number
props: {
users_count: {
type: [Number, String],
required: true
}
},
Example 2: vuejs props
export default {
name: 'Camera',
props: ['name', 'img'],
}