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 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1114 Reply
    kriti
    Guest

    How to effectively call controller Js and Helper Js components in aura components?

    #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 2 posts - 1 through 2 (of 2 total)
Reply To: Code snippet for calling a controller function from another controller function
Your information:




error: Content is protected !!