[docs] A reference of the field variable is missing in the sidebar (#6815)

pull/7738/head
Fabrizio Calderan 5 years ago committed by GitHub
parent b8968f2d7c
commit 13d46e324b

@ -2,9 +2,13 @@
title: Binding to component instances title: Binding to component instances
--- ---
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 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
```html ```html
<script>
let field;
</script>
<InputField bind:this={field} /> <InputField bind:this={field} />
``` ```

Loading…
Cancel
Save