• #32156

    Is Salesforce Lightning a Mvc Framework?

    Is Salesforce Lightning a Mvc Framework?


     Prachi #9

    Hi Avnish,

    No, it’s a component-based framework.


    Salesforce | shariq shariq #1


    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.

    Salesforce | Parul Parul #2


    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

Viewing 4 posts - 1 through 4 (of 4 total)

Please to reply to this topic.


We're not around right now. But you can send us an email and we'll get back to you, asap.


About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2019 Forcetalks. All Right Reserved.

Log in with your credentials


Forgot your details?