Skip to content

Commit 2c79860

Browse files
authored
[docs] A reference of the field variable is missing in the sidebar (#6815)
1 parent 6ff1aed commit 2c79860

File tree

1 file changed

+5
-1
lines changed
  • site/content/tutorial/06-bindings/14-component-this

1 file changed

+5
-1
lines changed

site/content/tutorial/06-bindings/14-component-this/text.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
title: Binding to component instances
33
---
44

5-
Just as you can bind to DOM elements, you can bind to component instances themselves. For example, we can bind the instance of `<InputField>` to a prop named `field` in the same way we did when binding DOM Elements
5+
Just as you can bind to DOM elements, you can bind to component instances themselves. For example, we can bind the instance of `<InputField>` to a variable named `field` in the same way we did when binding DOM Elements
66

77
```html
8+
<script>
9+
let field;
10+
</script>
11+
812
<InputField bind:this={field} />
913
```
1014

0 commit comments

Comments
 (0)