File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2266,7 +2266,7 @@ There are three ways to emit an event:
2266
2266
Listen to Events
2267
2267
~~~~~~~~~~~~~~~~
2268
2268
2269
- To listen to an event, add a method with a `#[LiveListener] ` above it::
2269
+ To listen to an event, add a method with a `` #[LiveListener] ` ` above it::
2270
2270
2271
2271
#[LiveProp]
2272
2272
public int $productCount = 0;
@@ -2280,7 +2280,7 @@ To listen to an event, add a method with a `#[LiveListener]` above it::
2280
2280
Thanks to this, when any other component emits the ``productAdded `` event, an Ajax
2281
2281
call will be made to call this method and re-render the component.
2282
2282
2283
- Behind the scenes, event listeners are also `LiveActions <actions> `, so you can
2283
+ Behind the scenes, event listeners are also `` LiveActions <actions> ` `, so you can
2284
2284
autowire any services you need.
2285
2285
2286
2286
Passing Data to Listeners
@@ -2299,7 +2299,7 @@ You can also pass extra (scalar) data to the listeners::
2299
2299
}
2300
2300
2301
2301
In your listeners, you can access this by adding a matching argument
2302
- name with `#[LiveArg] ` in front::
2302
+ name with `` #[LiveArg] ` ` in front::
2303
2303
2304
2304
#[LiveListener('productAdded')]
2305
2305
public function incrementProductCount(#[LiveArg] int $product)
You can’t perform that action at this time.
0 commit comments