how to give value t props in vuejs code example
Example 1: vue js default prop
props: {
name: {
type: String,
default: 'John Doe'
}
}
Example 2: vuejs props
export default {
name: 'Camera',
props: ['name', 'img'],
}
props: {
name: {
type: String,
default: 'John Doe'
}
}
export default {
name: 'Camera',
props: ['name', 'img'],
}