You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ Every page in your javascript application is backed by a Twig template which ret
56
56
{{ inertia('Posts/Index', { posts: posts }) }}
57
57
```
58
58
59
-
Note: templates are passed `element` variables automatically when a request is matched to an element. If you want to pass the element as a prop automatically to your page component, set the `injectElementAsProp` configuration to `true`.
59
+
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`.
60
60
61
61
## Shared Data
62
62
@@ -187,7 +187,7 @@ return [
187
187
],
188
188
189
189
/**
190
-
* Whether to inject the element matched from routing automatically into the application
190
+
* Whether to inject the route matched element (`entry` or `category`) automatically into the application
0 commit comments