Salesforce
PDII · Question #236
Which technique can run custom logic when an Aura Component is loaded?
The correct answer is B. Use an aura:handler "init" event to call a function. See the full explanation below for the reasoning.
Question
Which technique can run custom logic when an Aura Component is loaded?
Options
- AUse the standard doInit function in the controller.
- BUse an aura:handler "init" event to call a function.
- CUse the connectedCallback() method.
- DCall $A.enqueueAction passing in the method to call.
How the community answered
(27 responses)- A15% (4)
- B78% (21)
- C4% (1)
- D4% (1)
Community Discussion
No community discussion yet for this question.