I\'m having my practice in VueJS 1.0 and I am learning about Components. in this example, there is an input element and has to supply coupon
example
input
coupon
You should bind the property:
bind
<coupon v-bind:when-applied="setCoupon"></coupon>
or you could use the shorthand syntax for v-bind:
v-bind
<coupon :when-applied="setCoupon"></coupon>
Read more about the props here.
props