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.

  • [adinserter block='9']
  • Anurag algoworks

    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


    <aura:component extensible=”true” controller=”BaseComponentController”>
    </aura: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.