Activity Forums Salesforce® Discussions What are the value providers in Salesforce Lightning?

  • Prachi

    Member
    August 12, 2019 at 10:18 am

    Hi Achintya,

    Value providers are a way to access data. Value providers encapsulate related values together, similar to how an object encapsulates properties and methods.
    The value providers for a component are v (view) and c (controller).

    v - A component’s attribute set. This value provider enables you to access the value of a component’s attribute in the component’s markup.

    c - A component’s controller, which enables you to wire up event handlers and actions for the component.

    All components have a v value provider, but aren't required to have a controller. Both value providers are created automatically when defined for a component.

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos