Activity › Forums › Salesforce® Discussions › Is Salesforce Lightning a Mvc Framework?
Tagged: Component Base Architecture, Lightning Component Framework, MVC Framework, Salesforce Lightning
-
Is Salesforce Lightning a Mvc Framework?
Posted by Avnish Yadav on August 22, 2018 at 1:09 PMIs Salesforce Lightning a Mvc Framework?
Parul replied 7 years, 8 months ago 4 Members · 3 Replies -
3 Replies
- [adinserter block='9']
-
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.
-
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.