Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Salesforce Lightning Application Development

You're reading from   Learning Salesforce Lightning Application Development Build and test Lightning Components for Salesforce Lightning Experience using Salesforce DX

Arrow left icon
Product type Paperback
Published in Jul 2018
Publisher Packt
ISBN-13 9781787124677
Length 458 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Mohit Shrivatsava Mohit Shrivatsava
Author Profile Icon Mohit Shrivatsava
Mohit Shrivatsava
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Introduction to the Lightning Component Framework FREE CHAPTER 2. Exploring Salesforce DX 3. Lightning Component Building Blocks 4. The Lightning JavaScript API 5. Events in the Lightning Component Framework 6. Lightning Data Service and Base Components 7. Using External JavaScript Libraries in Lightning Components 8. Debugging Lightning Components 9. Performance Tuning Your Lightning Component 10. Taking Lightning Components out of Salesforce Using Lightning Out 11. Lightning Flows 12. Making Components Available for Salesforce Mobile and Communities 13. Lightning Navigation and Lightning Console APIs 14. Unit Testing Lightning Components 15. Publishing Lightning Components on AppExchange 16. Other Books You May Enjoy

To get the most out of this book

The book assumes that the reader has had some exposure to programming. The book also assumes that you are familiar with the Salesforce Apex programming language, JavaScript fundamentals (especially the concepts of variables, callbacks, and promises), HTML, and CSS. The book expects that you are familiar with Salesforce administration capabilities, such as creating objects and fields, and navigating through Salesforce.

To get most out of the book, sign up for a promotional Salesforce Org with Salesforce DX enabled at https://developer.Salesforce.com/promotions/Orgs/dx-signup, and a developer Org at https://developer.Salesforce.com/signup, and try all the code snippets discussed in the book by creating scratch Orgs for every chapter. Instructions for creating scratch Orgs, with the accompanying code, can be found in the following GitHub repository: https://github.com/PacktPublishing/Learning-Salesforce-Lightning-Application-Development.

The book uses the following software, all of which is freely available:

Download the example code files

You can download the example code files for this book from your account at www.packtpub.com. If you purchased this book elsewhere, you can visit www.packtpub.com/support and register to have the files emailed directly to you.

You can download the code files by following these steps:

  1. Log in or register at www.packtpub.com.
  2. Select the SUPPORT tab.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box and follow the onscreen instructions.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR/7-Zip for Windows
  • Zipeg/iZip/UnRarX for Mac
  • 7-Zip/PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Learning-Salesforce-Lightning-Application-Development. In case there's an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Download the color images

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in the text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "To override New, Edit, or View, the Lightning component must implement the Lightning:actionOverride interface."

A block of code is set as follows:

function StringUtils() {};

StringUtils.prototype.concatenate = function(str1,str2) {
return str1.concat(str2);
};

StringUtils.prototype.camelcase = function(string) {
string = string.toLowerCase().replace(/(?:(^.)|([-_\s]+.))/g, function(match) {
return match.charAt(match.length-1).toUpperCase();
});
return string.charAt(0).toLowerCase() + string.substring(1);
};

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

describe("when string operations are performed", function(){

//Spec for Concatenation operation
it("should be able to concatenate hello and world", function() {
expect(stringUtil.concatenate('Hello','World')).toEqual('HelloWorld');
});

//Spec for camelcase operation
it("should be able to camelcase", function() {
expect(stringUtil.camelcase('hello-world')).toEqual('helloWorld');
});

//Spec for capitalizeFirstLetter
it("should be able to capitalize First Letter", function() {
expect(stringUtil.capitalizeFirstLetter('world')).toEqual('World');
});
});

Any command-line input or output is written as follows:

sfdx force:lightning:test:run

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Once in the Setup menu, find App Manager from the search box. A new Lightning app can be created using the New Lightning App button."

Warnings or important notes appear like this.
Tips and tricks appear like this.
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image