Activity Forums Salesforce® Discussions How to call child method from parent in Salesforce Lightning Component?

  • Laveena

    Member
    August 16, 2019 at 5:28 am

    Hi Saddam,

    To achieve this, follow these steps:-

    Define aura:id of the child component in parent.
    Define <aura:method> in child component and it will link to method of child controller.
    Define a lightning:button on parent component and on click of this button get the reference of the child component as mentioned in step 1 and call aura:method as mentioned in step 2.

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos