Activity Forums Salesforce® Discussions How to use static custom label in Salesforce lightning component?

  • Yogesh

    Member
    November 20, 2019 at 6:35 am

    Hello,

    Use the following syntax to access custom labels in Aura components.$Label.c.labelName for the default namespace
    $Label.namespace.labelName if your org has a namespace, or to access a label in a managed package
    You can reference custom labels in component markup and in JavaScript code. Here are some examples.Label in a markup expression using the default namespace
    {!$Label.c.labelName}  .

  • Deepak

    Member
    November 20, 2019 at 2:00 pm

    {!$Label.c.labelName}

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos