how to display props in html 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'],
}