Commit 314ca71
committed
minor symfony#2610 [LiveComponent] Document how to pass a value to an event listener from Twig. (Artusamak)
This PR was merged into the 2.x branch.
Discussion
----------
[LiveComponent] Document how to pass a value to an event listener from Twig.
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| Issues | -
| License | MIT
The document is missing an important use case related to Event dispatching and listeners.
There is no documentation about how to pass data from a Twig template to an event listener method within the component. This PR adds an example.
Commits
-------
2180eca Document how to pass a value to an event listener from Twig.1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2776 | 2776 | | |
2777 | 2777 | | |
2778 | 2778 | | |
| 2779 | + | |
| 2780 | + | |
| 2781 | + | |
| 2782 | + | |
| 2783 | + | |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
| 2787 | + | |
| 2788 | + | |
2779 | 2789 | | |
2780 | 2790 | | |
2781 | 2791 | | |
| |||
0 commit comments