From 1a1f36edcf8a239e257f45c1edf4876c2dcc988d Mon Sep 17 00:00:00 2001 From: Kai Date: Sat, 29 May 2021 19:56:17 +0200 Subject: [PATCH] Tutorial: Description fix - each block bindings (#5974) The chapter highlights event binding in `each` block which is missing within the snippet. Thus it seems reasonable to include it within the description snippet block. --- .../09-each-block-bindings/text.md | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/site/content/tutorial/06-bindings/09-each-block-bindings/text.md b/site/content/tutorial/06-bindings/09-each-block-bindings/text.md index 7e50966c32..9c352703f1 100644 --- a/site/content/tutorial/06-bindings/09-each-block-bindings/text.md +++ b/site/content/tutorial/06-bindings/09-each-block-bindings/text.md @@ -5,15 +5,17 @@ title: Each block bindings You can even bind to properties inside an `each` block. ```html - +{#each todos as todo} + - + +{/each} ``` -> Note that interacting with these `` elements will mutate the array. If you prefer to work with immutable data, you should avoid these bindings and use event handlers instead. \ No newline at end of file +> Note that interacting with these `` elements will mutate the array. If you prefer to work with immutable data, you should avoid these bindings and use event handlers instead.