Skip to content

Commit 566adc7

Browse files
committed
fix
1 parent 4c7cfff commit 566adc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

documentation/docs/03-template-syntax/10-bind.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,14 @@ To get a reference to a DOM node, use `bind:this`. The value will be `undefined`
249249
Components also support `bind:this`, allowing you to interact with component instances programmatically.
250250

251251
```svelte
252-
<!--- App.svelte --->
252+
<!--- file: App.svelte --->
253253
<ShoppingCart bind:this={cart} />
254254
255255
<button onclick={() => cart.empty()}> Empty shopping cart </button>
256256
```
257257

258258
```svelte
259-
<!--- ShoppingCart.svelte --->
259+
<!--- file: ShoppingCart.svelte --->
260260
<script>
261261
// All instance exports are available on the instance object
262262
export function empty() {

0 commit comments

Comments
 (0)