nerdexam
Salesforce

CRT-450 · Question #142

A developer created a child Lightning web component nested inside a parent Lightning web component, parent component needs to pass a string value to the child component. In which two ways can this…

The correct answer is A. The parent component can use a custom event to pass the data to the child component, D. The parent component can use a public property to pass the data to the child component. See the full explanation below for the reasoning.

Question

A developer created a child Lightning web component nested inside a parent Lightning web component, parent component needs to pass a string value to the child component. In which two ways can this be accomplished? Choose 2 answers

Options

  • AThe parent component can use a custom event to pass the data to the child component,
  • BThe parent component can use the Apex controller class to send data to the child component.
  • CThe parent component can invoke a method in the child component
  • DThe parent component can use a public property to pass the data to the child component.

How the community answered

(25 responses)
  • A
    84% (21)
  • B
    4% (1)
  • C
    12% (3)

Community Discussion

No community discussion yet for this question.

Full CRT-450 Practice