Skip to content

Commit 2df113f

Browse files
committed
minor #1985 Fix wrong example for HTML syntax (WebMamba)
This PR was merged into the 2.x branch. Discussion ---------- Fix wrong example for HTML syntax | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Issues | Fix #1979 | License | MIT Commits ------- b7c7750 Fix wrong exemple for HTML syntaxt
2 parents bdd3107 + b7c7750 commit 2df113f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TwigComponent/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ prefix the attribute with ``:`` or use the normal ``{{ }}`` syntax:
293293
<twig:Alert message="hello!" user="{{ user.id }}" />
294294

295295
// pass object, array, or anything you imagine
296-
<twig:Alert :foo="['col' => ['foo', 'oof']]" />
296+
<twig:Alert :foo="{col: ['foo', 'oof']}" />
297297

298298
Don't forget that you can mix and match props with attributes that you
299299
want to render on the root element:

0 commit comments

Comments
 (0)