Skip to content

Commit 52d8a82

Browse files
committed
Fixing old stimulus_controller() syntax for multiple controllers
1 parent 3971e0b commit 52d8a82

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/index.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,8 @@ Then in your template, add your controller to the HTML attribute:
132132
<title>Typed</title>
133133
{# ... #}
134134
</head>
135-
<body {{ stimulus_controller({
136-
mytyped: {},
137-
'symfony/ux-typed': {}
135+
<body {{ stimulus_controller('mytyped')|stimulus_controller('symfony/ux-typed', {
136+
strings: ['...'],
138137
}) }}>
139138
{# ... #}
140139
</body>

0 commit comments

Comments
 (0)