Reputation: 135
I really can't get binding data between components.
Steps,
Child1
componentAdd
method on App.vue
App.vue
and make a v-for
list on Child2
No.3 is not working. I dont' even know 1,2 are correct on code.. How can I get input data to show item list?
Here's my code: Link
Upvotes: 0
Views: 117
Reputation: 1105
Code fixed: https://codesandbox.io/s/parent-to-childbyclicking-pp4yy
You emit a input
event on Child1
, but the App.vue
was not listening. Also, the list was wrongly pass on Child2
props.
Feel free to comment if you don't understand any part ;)
Upvotes: 1