Skip to content

Commit

Permalink
docs: make loading data link consistent with the chapter title (#438)
Browse files Browse the repository at this point in the history
Zerotask authored Dec 14, 2023

Verified

This commit was signed with the committer’s verified signature.
ImgBotApp Imgbot
1 parent ee29e32 commit 787c1a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
title: The <form> element
---

In the [chapter on loading](page-data), we saw how to get data from the server to the browser. Sometimes you need to send data in the opposite direction, and that's where `<form>` — the web platform's way of submitting data — comes in.
In the chapter on [loading data](page-data), we saw how to get data from the server to the browser. Sometimes you need to send data in the opposite direction, and that's where `<form>` — the web platform's way of submitting data — comes in.

Let's build a todo app. We've already got an in-memory database set up in `src/lib/server/database.js`, and our `load` function in `src/routes/+page.server.js` uses the [`cookies`](https://kit.svelte.dev/docs/load#cookies) API so that we can have a per-user todo list, but we need to add a `<form>` to create new todos:

1 comment on commit 787c1a2

@vercel
Copy link

@vercel vercel bot commented on 787c1a2 Dec 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.