Skip to content

Commit e9dde17

Browse files
committed
rm injectElementAsProp documentation
1 parent 4ce4b63 commit e9dde17

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Every page in your javascript application is backed by a Twig template which ret
5959
{{ page('Posts/Index') }}
6060
```
6161

62-
Note: templates are passed element variables (`entry` or `category`) automatically when the route is matched to either element type. If you want to pass the element as a prop automatically to your page component, set the `injectElementAsProp` configuration to `true`.
62+
Note: templates are passed element variables (`entry` or `category`) automatically when the route is matched to either element type.
6363

6464
## Shared Data
6565

@@ -249,11 +249,6 @@ return [
249249
'@webroot/dist/assets'
250250
],
251251

252-
/**
253-
* Whether to inject the route matched element (`entry` or `category`) automatically into the application
254-
*/
255-
'injectElementAsProp' => false,
256-
257252
/**
258253
* Whether to takeover all routing and forward to Inertia
259254
* If set to false, you can use Inertia in parallel to normal twig templates

0 commit comments

Comments
 (0)