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

  • Shweta

    Member
    February 7, 2020 at 12:44 pm

    <aura:method > :

    • It is used to to define a method as part of a component’s API.
    • It is used to simplifies the code needed for a parent component to call a method on a child component that it contains.
  • Ratnesh

    Member
    February 7, 2020 at 1:28 pm
    • This enables you to directly call a method in a component's client-side controller instead of firing and handling a component event.
    • It is used to to define a method as part of a component’s API.
    • 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