Regarding your ContactCard component, you have to use props instead of data when you want to pass data to another component via v-bind or :
props
data
v-bind
:
There are multiple ways to declare props:
export default { props: ['src', 'alt', 'title'], }
export default { props: { src: { type: String, required: true, }, title: { type: String, default: '', }, } }
See more details about props in the official documentation.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Regarding your ContactCard component, you have to use
props
instead ofdata
when you want to pass data to another component viav-bind
or:
There are multiple ways to declare props:
See more details about props in the official documentation.