Activity › Forums › Salesforce® Discussions › What is V and C in Salesforce Lightning?
Tagged: Controller, Lightning Components, Salesforce Lightning, Values, View
-
What is V and C in Salesforce Lightning?
Posted by Ayush on January 30, 2020 at 12:59 PMWhat is V and C in Salesforce Lightning?
Aditya replied 6 years, 3 months ago 4 Members · 3 Replies -
3 Replies
-
V refers to view and c refers to controller.
When we use v.abc, we are actually calling value hold by attribute abc.
When we use c.xyz, we are calling value return by the controller It can be server-side-controller (.JS controller )or client-side-controller (Apex Class) - [adinserter block='9']
-
Hi Ayush,
You are referring this for lightning components in Salesforce, V is for view and C is for Controller.
-When we use v.abc, we are actually calling value hold by attribute abc.
– When we use c.xyz, we are calling value return by the controller It can be server-side-controller (.JS controller )or client-side-controller (Apex Class)
Hence It is called as value providers because they are providing value.Hope it helps!
-
V refers for view a value of an attribute and C stands for controller that return a value by controller.
Log In to reply.