nerdexam
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)
  • A
    15% (4)
  • B
    78% (21)
  • C
    4% (1)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full PDII Practice