Skip to content

Commit 61831e6

Browse files
Sync svelte docs (#1160)
sync svelte docs Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
1 parent 7681130 commit 61831e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/svelte.dev/content/docs/svelte/02-runes/06-$bindable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Now, a component that uses `<FancyInput>` can add the [`bind:`](bind) directive
3434

3535
<!-- prettier-ignore -->
3636
```svelte
37-
/// App.svelte
37+
/// file: App.svelte
3838
<script>
3939
import FancyInput from './FancyInput.svelte';
4040

apps/svelte.dev/content/docs/svelte/03-template-syntax/11-bind.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ Elements with the `contenteditable` attribute support the following bindings:
268268
<!-- for some reason puts the comment and html on same line -->
269269
<!-- prettier-ignore -->
270270
```svelte
271-
<div contenteditable="true" bind:innerHTML={html} />
271+
<div contenteditable="true" bind:innerHTML={html}></div>
272272
```
273273

274274
## Dimensions
@@ -308,7 +308,7 @@ To get a reference to a DOM node, use `bind:this`. The value will be `undefined`
308308
});
309309
</script>
310310
311-
<canvas bind:this={canvas} />
311+
<canvas bind:this={canvas}></canvas>
312312
```
313313

314314
Components also support `bind:this`, allowing you to interact with component instances programmatically.

0 commit comments

Comments
 (0)