Activity Forums Salesforce® Discussions What is V and C in Salesforce Lightning?

  • Ratnesh

    Member
    January 30, 2020 at 1:01 pm

    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)

  • Anjali

    Member
    January 30, 2020 at 1:05 pm

    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!

  • Aditya

    Member
    January 30, 2020 at 1:06 pm

    V refers for view a value of an attribute and C stands for controller that return a value by controller.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos