Code snippet for calling a controller function from another controller function

Latest Posts Forums Project Scenarios Lightning Aura Component Code snippet for calling a controller function from another controller function

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1115 Reply
    Admin
    Keymaster

    Calling a controller function from another controller function
    $A.enqueueAction(component.get('c.controllerMethod'));

    When you are calling a helper function from a controller function you can use:
    helper.helperMethod(component, event, helper);

    When you are calling a helper function from a helper function you can use:
    this.helperMethod(component, event, helper);

Viewing 1 post (of 1 total)
Reply To: Reply #1115 in Code snippet for calling a controller function from another controller function
Your information: