How can i call JS(client side controller) function into helper js function. Please show me the code. Thankyou

2 Answers 2



A Sample Code below.

<aura:component >
    <ui:outputText aura:Id="Hello" value=""/>
    <ui:button label="Click" press="{!c.Click}"/>


    Click : function(component, event, helper)



    helperMethod : function(component,sum) 
        var hello=component.find("Hello");
        hello.set("v.value","New Value !!!")


As ankuli suggested, refer the trailhead document.


you can call helper js method from client side controller but reverse is not defined anywhere. helper.callMethodOfClinetSideCotnroller(component, parameter1);

  • Where can we Study this one.. will you give me a tutorial link for that so that i can deeply understand and study how to use helper . Thank you I really appreciate your will to help. Aug 14, 2015 at 7:24
  • You can use Trail head which will give you knowledge very quickly. and if you want go through deep into lightning. this link is useful resources.docs.salesforce.com/sfdc/pdf/lightning.pdf
    – Ankuli
    Aug 14, 2015 at 7:41
  • Will you give me an example of code that will use a helper, JS( client side controller),apex(server side controller) , and aura componet. Please .. Aug 14, 2015 at 8:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .