Salesforce Lightning Components Tutorial
Salesforce Lightning Components Tutorial
Salesforce Lightning Components Tutorial
Controller Source
({
handleClick : function(cmp, event)
{
var attributeValue =
cmp.get("v.text");
console.log("current text: " +
attributeValue);
6. CSS style: This is basic CSS styling as used in the HTML it is used to styling and coloring
of the page.
Create and Edit Lightning Components.
Before going into this Salesforce lightning tutorial, we need some setups. To develop the lightning
application, you need org setup which are as follows.
1. Go to this link https://developer.salesforce.com/signup?d=70130000000td6N
2. Fill the fields required.
3. In email field provide public address so that you can access it easily from the web browser.
4. Provide username which is easy to remember and in pattern of your mail ex
[email protected].
5. Read and select the checkbox for the subscription agreement.
6. After this you will get mail notification and for the password change and change the password.
To Start this salesforce lightning tutorial for beginners we will approach it with step wise.
Fig: Screen Shot from the Salesforce Lightning Experience web page
Step 2: Go to File New Lightning Component.
Fig: Screen Shot from the Salesforce Lightning Experience web page
Step3: After clicking on lightning component give the name for your component like
Myfirst_lightcomponent and submit the form, as shown in below screenshot.
Step3: Now with heading embed the component name in the file, as shown in below figure and
save the file. C in the code is default name space to access the lightning component.
</fieldset>
<!-- / BOXED AREA -->
</div>
<!-- / CREATE NEW EXPENSE -->