Salesforce
CRT-450 · Question #23
A developer is creating an app that contains multiple Lightning web components. One of the child components is used for navigation purposes. When a user click a button called.. component, the parent…
The correct answer is D. Create a custom event. See the full explanation below for the reasoning.
Question
A developer is creating an app that contains multiple Lightning web components. One of the child components is used for navigation purposes. When a user click a button called.. component, the parent component must be alerted so it can navigate to the next page. How should this be accomplished?
Options
- AFire a notification.
- BUpdate a property on the parent.
- CCall a method in the Apex controller.
- DCreate a custom event.
How the community answered
(26 responses)- A4% (1)
- C12% (3)
- D85% (22)
Community Discussion
No community discussion yet for this question.