Activity Forums Salesforce® Discussions Is Lightning Components build on the MVC pattern in Salesforce?

  • Sumit

    Member
    January 31, 2020 at 1:33 pm

    No, it's a component-based framework.

  • Shweta

    Member
    January 31, 2020 at 1:39 pm

    No, There are similarities but Lightning components is View Controller Controller Model. The main difference between the Lightning component and MVC is dual controller design. Dual controller design means when you interact with Salesforce, your components will have a server-side controller in addition to the client-side controller.

     

  • Shubham

    Member
    January 31, 2020 at 1:49 pm

    Hi deepak,

    There are similarities, to be sure, but it would be more correct to say that

    Lightning Components is View-Controller-Controller-Model, or perhaps View-Controller-Controller-Database.

    Why is “controller” doubled up in that pattern name? Because when interacting with Salesforce, your components will have a server-side controller in addition to the client-side controller. This dual controller design is the key difference between Lightning Components and MVC.

  • Pooja

    Member
    January 31, 2020 at 1:50 pm

    No, Lightning components do not build on the MVC pattern in Salesforce.

Log In to reply.

Popular Salesforce Blogs