May 2019
Intermediate to advanced
546 pages
12h 41m
English
The variables of your Lightning component are called attributes. A Visualforce component also has attributes, but the main difference is that the attributes of a Lightning component can be filled in at the runtime of your component (when a user enters some information in a form), or when the user is calling an action by pressing a button.
Let's take a look at the following component with the name HelloWorld.cmp:
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global"> <aura:attribute name="message" type="String" default="World" /> <p>Hello {!v.message}</p></aura:component>
In this example, the output in your component will be Hello World. We've defined an attribute in our component ...
Read now
Unlock full access