Skip to content

Commit d394049

Browse files
committed
minor #2274 Update index.rst (GrinWay)
This PR was merged into the 2.x branch. Discussion ---------- Update index.rst Fixed forgotten commas in twig component function, cuz without it... It won't be working | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Issues | Fix the documentation | License | MIT Commits ------- d6bb6d7 Update index.rst
2 parents d159cdd + d6bb6d7 commit d394049

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LiveComponent/doc/index.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -2421,7 +2421,7 @@ the ``loading-template`` option to point to a template:
24212421
<twig:SomeHeavyComponent loading="defer" loading-template="spinning-wheel.html.twig" />
24222422

24232423
{# With the component function #}
2424-
{{ component('SomeHeavyComponent', { loading: 'defer', loading-template: 'spinning-wheel.html.twig' }) }}
2424+
{{ component('SomeHeavyComponent', { loading: 'defer', 'loading-template': 'spinning-wheel.html.twig' }) }}
24252425

24262426
Or override the ``loadingContent`` block:
24272427

@@ -2444,7 +2444,7 @@ To change the initial tag from a ``div`` to something else, use the ``loading-ta
24442444

24452445
.. code-block:: twig
24462446
2447-
{{ component('SomeHeavyComponent', { loading: 'defer', loading-tag: 'span' }) }}
2447+
{{ component('SomeHeavyComponent', { loading: 'defer', 'loading-tag': 'span' }) }}
24482448
24492449
Polling
24502450
-------

0 commit comments

Comments
 (0)