1
/
of
1
Vue JS 3 tutorial #29 Slots with example
Vue JS 3 tutorial #29 Slots with example
QSelect API props 89 slots 16 events 13 methods 23 computedProps 1 behavior 19 content 20 general 1 model 3 options 11 position 3
What if the parent component needs to access data or methods contained in the child component? 3 The Scoped Slots Let's say for example that
slot machine sisal Named slots In this example we have 3 slots The body slot is a scoped slot, passing on a slot prop As with the earlier examples, it could pass along the
slot wallet xo In terms of final output, slots perform a similar function as props in Vue — getting data from a parent component to a child component Slots are also helpful
Regular
price
178.00 ₹ INR
Regular
price
178.00 ₹ INR
Sale
price
178.00 ₹ INR
Unit price
/
per
Share
![slot in vue 3](10016.jpg)