Book Image

Learning Salesforce Lightning Application Development

By : Mohit Shrivatsava
Book Image

Learning Salesforce Lightning Application Development

By: Mohit Shrivatsava

Overview of this book

Built on the Salesforce App Cloud, the new Salesforce Lightning Experience combines three major components: Lightning Design System, Lightning App Builder, and Lightning Components, to provide an enhanced user experience. This book will enable you to quickly create modern, enterprise apps with Lightning Component Framework. You will start by building simple Lightning Components and understanding the Lightning Components architecture. The chapters cover the basics of Lightning Component Framework semantics and syntax, the security features provided by Locker Service, and use of third-party libraries inside Lightning Components. The later chapters focus on debugging, performance tuning, testing using Lightning Testing Services, and how to publish Lightning Components on Salesforce AppExchange.
Table of Contents (22 chapters)
Title Page
PacktPub.com
Foreword
Contributors
Preface
Index

Chapter 3. Lightning Component Building Blocks

In the last chapter, we equipped ourselves with tools and a developer workflow using Salesforce DX. In this chapter, we will build our first working Lightning Component. As we build the application, we will explore the basic building blocks of the Lightning Component framework, which includes Component Markup, the JavaScript controller, and helper. We will also learn how to wire a server-side Apex controller to client-side JavaScript. By the end of the chapter, we will have a Lightning Component that allows users to input a search string and search YouTube content.

This chapter assumes that you are familiar with Salesforce server-side Apex programming. If you are not familiar with Salesforce Apex programming, you can explore it on Trailhead (https://trailhead.Salesforce.com/en/modules/Apex_database/units/Apex_database_intro).

In this chapter, we will be covering the following topics:

  • Component markup and using Lightning base components for layouts...