Skip to content

[bug?] When I try to read listener(onXXX) from $props, I got the undefined. #6232

Discussion options

You must be logged in to vote

First of all, in part 3 edit file ChildComp.vue, and add <div v-if="!!$props.onResponse">{{ String($props.onResponce) }}</div>, the String($props.onResponce) should be String($props.onResponse), if you want get the onResponse, you must declare in the props😉.
Like this Example

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LinusBorg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants