Activity Forums Salesforce® Discussions more than one server side controller in lightning

  • chanchal kumar

    Member
    September 10, 2018 at 1:45 pm

    Hello Anjali,

    There is 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.

  • Anurag

    Member
    September 10, 2018 at 1:48 pm

    Hi Anjali,

    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>

  • shariq

    Member
    September 10, 2018 at 2:32 pm

    Hi,

    Salesforce doesn't support this feature as of now. I think we can write enough auraenabled method in the same controller and doesn't require two different controllers for the same component.  can you please give me a situation where you need this ?

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos