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

Success Stories – How DemandBlue Helped Its Clients Improve Revenue Recognition with Salesforce Revenue Cloud Implementation

Blog in

Businesses that deal with subscription-based contracts, usage-based billing or other complex contracts face several difficulties in managing their billing cycle. Though Salesforce CPQ implementation does the heavy-lifting…

Popular Salesforce Videos