nerdexam
Salesforce

PDII · Question #236

PDII Question #236: Real Exam Question with Answer & Explanation

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.

Community Discussion

No community discussion yet for this question.

Full PDII Practice