Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions apps/svelte.dev/content/blog/2024-12-01-advent-of-svelte.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ If you just want to render something in an `{#each ...}` block _n_ times, and do
You can now export snippets from a component's `<script module>`, for use in other components, as long as those snippets don't reference anything belonging to the component instance.

- [docs](/docs/svelte/snippet#Exporting-snippets)
- [demo](/playground/16b7dd7105c248e59ec8a437697f588d?version=5.5.0)
- [demo](/playground/16b7dd7105c248e59ec8a437697f588d)

## Day 4
## Day 4: form control default values

Coming soon!
When you reset a form, the value of each `<input>` element reverts to its `defaultValue`. This is normally the empty string, but you can now control it directly in your template.

- [docs](/docs/svelte/bind#input-bind:value)
- [demo](/playground/b30cfac16c3c4a3ab3d76ad20a5925cf)

## Day 5

Expand Down
Loading