Activity Forums Salesforce® Discussions Can we call multiple Apex classes from a Single Salesforce Lightning Component?

  • Avnish Yadav

    Member
    August 27, 2018 at 6:09 am

    Hi Anurag,

    Yes and No , no way so far for multiple apex controllers link to one aura component. but component allows include child components or inherited from super component. Each component has one controller.

    using inheritance

    <!-- BaseComponent -->
    <aura:component extensible="true" controller="BaseComponentController">
    </aura:component>

    <!-- child component -->
    <aura:component extends="BaseComponent"
    controller="childComponentController">
    </aura:component>
    Invoke Base component helper method from child component, then invoke BaseComponentController methods.

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos