Vue v-slot Directive
Vue v-slot Directive
The slots also support default content which will render if a named slot remains unfulfilled View code for this lesson Transcript Comments
Btw, apologies for the syntax highlighting, it struggles a bit with Vue! Default slots This is the most basic of slots It takes the content
vue 3 slot All slots are passed the context object via scoped slot Slot name, Description default, The default slot is already reserved for use as a pass-through
vue slot props Default slots are simply declared by using the slot element on the child component And in order to pass our HTML, we don't need to add anything
Regular
price
178.00 ₹ INR
Regular
price
178.00 ₹ INR
Sale
price
178.00 ₹ INR
Unit price
/
per