vue slot props
Template in Vue Common control
Template in Vue Common control
Regular
price
1000 ₹ INR
Regular
price
Sale
price
1000 ₹ INR
Unit price
/
per
Template in Vue Common control vue slot props props from the child to the parent component: Scoped Slots You can think of a scoped slot as a function passed into the child component The vue slotscope =item in items :key=> slot :item=item>slot> li> ul> template> script> export default { name: 'List', props: { items:
vue slotscope In most cases, you can use scoped slots instead of render props But, it might be useful in some cases with SFC template>
vue default slot Default scoped slot If the slot is a scoped slot then we'll need to pass on the slot props too: template A Scoped slot provides local data from the component so that the parent can choose how to render it Send Data to Parent We use v-bind in the component slot to