1
/
of
1
Passing data from layouts to pages in SvelteKit
Passing data from layouts to pages in SvelteKit
Svelte allows you to pass data to slots using slot props You use the slot props in situations where you want to pass some data from the child
In Svelte, we can pass data from parent to child components using props Props are properties that allow the parent to pass data to its child
sveltekit slot In slots, we can also pass the data using the props There is a directive let: reserved for this operation In script>
svelte check if slot is empty function create_default_slot { let row; let current; row = new Row({ props: { $$slots: { default: }, $$scope: { ctx }
Regular
price
124.00 ₹ INR
Regular
price
124.00 ₹ INR
Sale
price
124.00 ₹ INR
Unit price
/
per
Share
![svelte pass props to slot](10028.jpg)