Slot trong Vue 3
Slot trong Vue 3
We need the v-slot directive to refer to named slots Named slots allow for more control over where the content is placed within the child component's template
{ slot: 'content' }, ) ]) In addition, when referencing scoped slots, they could be referenced using the following syntax: js Syntax this
slot pg 168 passing props to a slot ·
slot cars dallas You know how to pass data into a slot by using scoped slots, but how do you communicate back?
Regular
price
121.00 ₹ INR
Regular
price
121.00 ₹ INR
Sale
price
121.00 ₹ INR
Unit price
/
per