Commit 86a7d39
committed
minor #1367 [live-component docs] Rearrange information about using custom Stimul… (srich387)
This PR was merged into the 2.x branch.
Discussion
----------
[live-component docs] Rearrange information about using custom Stimul…
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| Issues | n/a
| License | MIT
In the section 'Working with the Component in JavaScript', the preamble mentions that you can create a custom Stimulus controller, and attach it to or put it around the root component element, in order to control its behaviour.
How to attach a custom controller is, however, only explained further down in the subsection 'Adding a Stimulus Controller to your Component Root Element'. This subsection is currently buried beneath an intervening subsection on a different topic, 'JavaScript Component Hooks', making it easy for a reader to overlook.
I have therefore swapped these two subsections around to improve their logical flow.
It is especially important that this information is presented clearly because it has caused confusion in the past; see e.g. #687.
Commits
-------
c8113e0 [live-component docs] Rearrange information about using custom Stimulus controllers1 file changed
+15
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
842 | 842 | | |
843 | 843 | | |
844 | 844 | | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
845 | 860 | | |
846 | 861 | | |
847 | 862 | | |
| |||
876 | 891 | | |
877 | 892 | | |
878 | 893 | | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | | - | |
883 | | - | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | 894 | | |
895 | 895 | | |
896 | 896 | | |
| |||
0 commit comments