Activity Forums Salesforce® Discussions What is an Attribute in Salesforce Lightning?

  • Sumit

    Member
    February 3, 2020 at 8:58 am

    What is an Attribute in Lightning? The attribute is like a member variable in our regular coding (like declare variables in Apex, JavaScript). In simple words, attributes are used to store information to be referenced and used in our lightning component code. An attribute will make your lightning component more dynamic

    • This reply was modified 4 years, 10 months ago by  Forcetalks.
  • Manish

    Member
    February 3, 2020 at 9:25 am

    Hi Aditya

     

    Attribute refers to the declaration on the variable as we do in apex.

     

    <aura:attribute name=”accObj” type=”Account” access=”public” default=”{‘sobjectType’: ‘Account’, ‘Name’: ”, ‘Website’: ”, ‘Phone’: ”, ‘Description’: ”, ‘Industry’: ”}” />

    • This reply was modified 4 years, 10 months ago by  Forcetalks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos