Skip to content

Commit 7c9cc08

Browse files
Update README counter example to text interpolation
Match examples/pyside/counter.cgx and the documentation, which use text content with interpolation instead of the :text attribute. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent ac11af2 commit 7c9cc08

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,8 @@ Here is an example that shows a counter, made with a component with Vue-like syn
2525
Contents of `counter.cgx`:
2626
```html
2727
<widget>
28-
<label
29-
:text="f'Count: {count}'"
30-
/>
31-
<button
32-
text="bump"
33-
@clicked="bump"
34-
/>
28+
<label>Count: {{ count }}</label>
29+
<button @clicked="bump">bump</button>
3530
</widget>
3631

3732
<script>

0 commit comments

Comments
 (0)