Skip to content

Commit 9de081b

Browse files
authored
fix(docs): xref for data-star reference links (#124)
1 parent b1c16e6 commit 9de081b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/content/docs/tutorials/datastar-todomvc.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ Let's add an input field so users can add todos directly from the web interface.
461461
</body>
462462
```
463463
464-
The input uses [`data-signals-input`](https://data-star.dev/reference/attributes#data-signals-input) to create a `$input` signal, [`data-bind-input`](https://data-star.dev/reference/attributes#data-bind-input) to sync the field value with the signal, and [`data-on-keydown`](https://data-star.dev/reference/attributes#data-on-keydown) to POST the todo text to our `/add` endpoint when Enter is pressed, then clear the input field.
464+
The input uses [`data-signals-input`](https://data-star.dev/reference/attributes#data-signals) to create a `$input` signal, [`data-bind-input`](https://data-star.dev/reference/attributes#data-bind) to sync the field value with the signal, and [`data-on-keydown`](https://data-star.dev/reference/attributes#data-on-keydown) to POST the todo text to our `/add` endpoint when Enter is pressed, then clear the input field.
465465
466466
Now add the `/add` endpoint to your `serve.nu` by adding this case to the match block (you'll need to restart http-nu after updating the file):
467467

0 commit comments

Comments
 (0)