Activity Forums Salesforce® Discussions Is Salesforce Lightning a Mvc Framework?

  • Prachi

    Member
    August 22, 2018 at 1:11 pm

    Hi Avnish,

    No, it’s a component-based framework.

    thanks.

  • shariq

    Member
    September 16, 2018 at 5:10 pm

    Hi,

    The lightning framework follows “Component-Based Architecture”, but it is based on web standards like (JS, HTML5, CSS3) and usesMVC/event-driven programming techniques.

    To add more -

     

    It’s beneficial to understand that Lightning Components are object oriented in nature, and have similar behavior to and characteristics of classes. Components have encapsulated presentation (markup), data state (attributes), logic (JavaScript functions), and style (CSS rules).

    The public interface (or shape) is represented by a component’s attributes, which are analogous to member variables of a class. Each attribute is declared with a data type for the value it will reference, and may be accessed from within the component’s markup or encapsulated JavaScript.

    Lightning Attributes, which are expressed as tags in a component’s markup, have a collection of available named attributes such as name, type, description, required and access. That last one determines the attribute’s scope, acting as an access modifier with the values public (the default), private, or global.

    Hope this helps.

  • Parul

    Member
    September 16, 2018 at 5:44 pm

    Hi

    In a word, no. 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.

    These are Naming Rules in Salesforce Lightning
    • Must begin with a letter
    • Must contain only alphanumeric or underscore characters
    • Can’t end with an underscore

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos