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
“ Sometimes you may want to access data from a parent component inside a child component.”
The above is from Laravel documentation.
For anonymous components @aware directive solves the problem of accessing data passed to (from a) parent component. What is the equivalent solution for class based components?
Let’s say I have two components one for form and other for form input text field.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
“ Sometimes you may want to access data from a parent component inside a child component.”
The above is from Laravel documentation.
For anonymous components
@aware
directive solves the problem of accessing data passed to (from a) parent component. What is the equivalent solution for class based components?Let’s say I have two components one for form and other for form input text field.
<x-form :object=“$object”> <x-input name=“email”/> </x-form>
And I would have Components/Form and Components /Input classes. How can I access $object in Components/Input class?
Beta Was this translation helpful? Give feedback.
All reactions