DEV Community

Discussion on: Hands-on Vue.js for Beginners (Part 5)

 
marinamosti profile image
Marina Mosti

Hello Fred, the fact that it "works" doesn't mean that it is correct. You will run into issues eventually when the parent starts re-rendering. The correct way to handle input wrapper components is by using a value prop and $emit with an input event so you can v-model on the parent.

vuejs.org/v2/guide/components-cust...