Skip to content

Commit 21595a7

Browse files
committed
minor #2043 [Doc] fix some comments in component defer part (Nek-)
This PR was merged into the 2.x branch. Discussion ---------- [Doc] fix some comments in component defer part | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Issues | none | License | MIT <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - For new features, provide some code snippets to help understand usage. - Features and deprecations must be submitted against branch main. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Commits ------- 3c0e1ca [Doc] fix some comments in component defer part
2 parents 9bcdd35 + 3c0e1ca commit 21595a7

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
@@ -2311,12 +2311,12 @@ the page has loaded. To do this, add a ``loading="defer"`` attribute:
23112311

23122312
.. code-block:: html+twig
23132313

2314-
{# With the component function #}
2314+
{# With the HTML syntax #}
23152315
<twig:SomeHeavyComponent loading="defer" />
23162316

23172317
.. code-block:: twig
23182318
2319-
{# With the HTML syntax #}
2319+
{# With the component function #}
23202320
{{ component('SomeHeavyComponent', { loading: 'defer' }) }}
23212321
23222322
This renders an empty ``<div>`` tag, but triggers an Ajax call to render the

0 commit comments

Comments
 (0)