File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1602,7 +1602,7 @@ Note that explicitly passing in an empty named slot will add that slot's name to
16021602
16031603Slots can be rendered zero or more times.
16041604
1605- The ` let: ` directive gives a slot template access to variables defined in the component that uses them .
1605+ The ` let: ` directive gives a slot template access to variables defined in the component that they are provided to .
16061606The usual shorthand rules apply — ` let:item ` is equivalent to ` let:item={item} ` , and ` <slot {item}> ` is equivalent to ` <slot item={item}> ` .
16071607
16081608``` sv
@@ -1618,7 +1618,7 @@ The usual shorthand rules apply — `let:item` is equivalent to `let:item={item}
16181618
16191619<!-- App.svelte -->
16201620<!-- the `let:itemData={thing}` directive makes the value that `FancyList` pases as the `itemData` prop
1621- available to the slot template as the `thing` variable -->
1621+ available to the slot template as a variable called `thing` -->
16221622<FancyList {items} let:itemData={thing}>
16231623 <div>{thing.text}</div>
16241624</FancyList>
You can’t perform that action at this time.
0 commit comments