vue js default prop
props: {
name: {
type: String,
default: 'John Doe'
}
}
vue js default prop
props: {
name: {
type: String,
default: 'John Doe'
}
}
vue boolean
// HTML
<input type="checkbox" v-model="booleanValue"/>
// Vue App
data: {
booleanValue: false
}
vue js props
Vue.component('blog-post', {
// camelCase in JavaScript
props: ['postTitle'],
template: '<h3>{{ postTitle }}</h3>'
})
<!-- kebab-case in HTML -->
<blog-post post-title="hello!"></blog-post>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us