Skip to content

Commit c65a55f

Browse files
author
Rich Harris
committed
reorder examples
1 parent 6c099e5 commit c65a55f

File tree

34 files changed

+5
-2
lines changed

34 files changed

+5
-2
lines changed

content/tutorial/01-svelte/06-bindings/06-select-bindings/README.md renamed to content/tutorial/01-svelte/06-bindings/04-select-bindings/README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
title: Select bindings
33
---
44

5-
We can also use `bind:value` with `<select>` elements. Update line 32:
5+
We can also use `bind:value` with `<select>` elements:
66

77
```svelte
88
/// file: App.svelte
9-
<select bind:value={selected} on:change="{() => answer = ''}">
9+
<select
10+
+++bind:+++value={selected}
11+
on:change={() => answer = ''}
12+
>
1013
```
1114

1215
Note that the `<option>` values are objects rather than strings. Svelte doesn't mind.

0 commit comments

Comments
 (0)