A developer created a child Lightning web component nested inside a parent Lightning web component. The parent component needs to pass a string value to the child component.
I think options B and D are the correct ways to pass data from the parent to the child component. Using a public property or a custom event seems like the most straightforward approach.
I'm not sure about option C and D. Using the Apex controller class seems unnecessary for passing data, and custom events might be more suitable for other purposes.
Arletta
13 days agoBuddy
15 days agoVallie
17 days agoAleshia
24 days ago