Skip to content

Commit

Permalink
Update 02-template-syntax.md
Browse files Browse the repository at this point in the history
Removed: > Note that we can't do `{cart.empty}` since `cart` is `undefined` when the button is first rendered and throws an error.

It fixed in 3.16.7
Issue: sveltejs#4090
  • Loading branch information
rodshtein authored Feb 9, 2022
1 parent eb6fb66 commit 0d655c2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions site/content/docs/02-template-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -1427,8 +1427,6 @@ bind:this={component_instance}

Components also support `bind:this`, allowing you to interact with component instances programmatically.

> Note that we can't do `{cart.empty}` since `cart` is `undefined` when the button is first rendered and throws an error.
```sv
<ShoppingCart bind:this={cart}/>
Expand Down

0 comments on commit 0d655c2

Please sign in to comment.