Activity › Forums › Salesforce® Discussions › What is an Attribute in Salesforce Lightning?
-
What is an Attribute in Salesforce Lightning?
Posted by Aditya on February 3, 2020 at 8:55 AMWhat is an Attribute in Salesforce Lightning?
Manish replied 6 years, 4 months ago 3 Members · 2 Replies -
2 Replies
-
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 6 years, 4 months ago by
Forcetalks.
-
This reply was modified 6 years, 4 months ago by
- [adinserter block='9']
-
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 6 years, 4 months ago by
Forcetalks.
-
This reply was modified 6 years, 4 months ago by
Log In to reply.