Activity Forums Salesforce® Discussions How can we call child component controller method from the parent component controller method in Salesforce?

  • How can we call child component controller method from the parent component controller method in Salesforce?

    Posted by Marziya on February 10, 2020 at 4:52 pm

    How can we call child component controller method from the parent component controller method in Salesforce?

    MOHIT replied 4 years, 10 months ago 2 Members · 1 Reply
  • 1 Reply
  • MOHIT

    Member
    February 10, 2020 at 5:49 pm

    hii,

    Syntax to call Child Component in Parent component is :

    <c:childComponent aura:id=’childCmp’ />             – Use this Syntax if no namespace is defined by you.

    <yourNameSpace:childComponent aura:id=’childCmp’ />   Use this Syntax if you have your own  namespace is defined by you.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos