Skip to content

Commit 7333703

Browse files
author
Rich Harris
committed
tweaks
1 parent d439c8a commit 7333703

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

content/tutorial/01-svelte/08-stores/06-store-bindings/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ We can also assign directly to store values inside a component. Add a `<button>`
1717

1818
```svelte
1919
/// file: App.svelte
20-
<button on:click={() => $name += '!'}>
20+
<button +++on:click={() => $name += '!'}+++>
2121
Add exclamation mark!
2222
</button>
2323
```

content/tutorial/01-svelte/08-stores/06-store-bindings/app-a/src/lib/App.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44

55
<h1>{$greeting}</h1>
66
<input value={$name} />
7+
8+
<button>
9+
Add exclamation mark!
10+
</button>

content/tutorial/01-svelte/08-stores/06-store-bindings/app-b/src/lib/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
<h1>{$greeting}</h1>
66
<input bind:value={$name} />
77

8-
<button on:click={() => ($name += '!')}>
8+
<button on:click={() => $name += '!'}>
99
Add exclamation mark!
1010
</button>

0 commit comments

Comments
 (0)