Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

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

Lines changed: 5 additions & 2 deletions
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)