Activity Forums Salesforce® Discussions What is the use of the aura:method tag in Salesforce Lightning?

  • Prachi

    Member
    August 20, 2018 at 12:51 pm

    Hi Anjali,

    We Use <aura:method> to define a method as part of a component's API. This enables you to directly call a method in a component’s client-side controller instead of firing and handling a component event. Using <aura:method> simplifies the code needed for a parent component to call a method on a child component that it contains.

    Thanks.

  • Parul

    Member
    September 28, 2018 at 5:18 pm

    This enables you to directly call a method in a component's client-side controller instead of firing and handling a component event. Using <aura:method> simplifies the code needed for a parent component to call a method on a child component that it contains. The <aura:method> tag has these system attributes.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos