SlideShare a Scribd company logo
Lightning Web Components
Cairo Salesforce Developers Meetup
February 15th 2020
What to expect
- Evolution of Salesforce UI and UI components.
- LWC vs Aura.
- Spring 20 LWC enhancements.
- Aura Events
- Lightning Messaging Service
Salesforce UI Evolution
Web Standards Evolution
Enhanced productivity
Use the modern language of the web: ES6+, Custom
Elements, and Shadow DOM
Built for performance
More code executed by the browser instead of JavaScript
abstractions for a blazing fast experience
Compatible and easy to use
Runs side-by-side with existing Lightning components
and can be composed with clicks or code
Introducing Lightning Web Components
Generally
Available
Spring ‘19
New programming model built on modern web standards
LWC and Aura compatibility
Aura Component
Lightning Web
Component
Lightning Web
Component
Aura
Component
Lightning Experience Component Model
Lightning Web Components - Anatomie
consists of 5+ (2/3 required *) files
Standard CSS Syntax, applies automatically to this component
ES6 module, everything declared in module is local & scoped to the
module
Custom Icon (Lightning App & Community Builder)
Root is <template>, Standard HTML
Configuration File, specifies
● APIVersion
● Description,
● General Availability in Tools
● Label
● Targets of possible Appearance and the appropriate Config
*
*
*
+
+
for ! srv cmp
Development Tools
Salesforce CLIDeveloper Console
Salesforce Extensions for VS Code
App Builder
Process Builder
No Code Builders Pro Code Tools
Flow Builder
Demo
Build the First LWC
Decorators
Decorator Description Accessibility Rerender
- Private No
@track o track a private property’s value
and rerender a component when it
changes
private Yes
@api expose a public property that
defines the API for a component.
public Yes
@wire To read Salesforce data use a
reactive wire service.
private Yes
New @Track behavior in Spring 20
@Track
- All fields in a Lightning web component class are reactive.
- When a field contains an object or an array, there’s a limit to the depth of
changes that are tracked. To tell the framework to observe changes to the
properties of an object or to the elements of an array, decorate the field
with @track.
To know more, Check Spring 20 release notes:
https://releasenotes.docs.salesforce.com/en-us/spring20/release-
notes/rn_lwc_track.htm
Aura Component Events
Component A
Component B Component C
Component D
Application
Events
Comp
Events
For more information check:
https://developer.salesforce.com/blogs/2019/10/lightning-message-service-
developer-preview.html
Lightning Message Service
Visualforce LWC Aura
learn more with our trailmix
• https://sforce.co/lwc
• https://developer.salesforce.com/docs/comp
onent-library/documentation/lwc
• https://trailhead.salesforce.com/en/content/le
arn/trails/learn-to-work-with-javascript
Send an email to ahmedkishk@gmail.com
The fastest correct answer win 50% off certificate voucher
Challenge
1. Universal Containers has 2 employees (Sales Rep and Sales Manager). It is required that only
Sales Manager can see and edit Account Forecast Field. What a Salesforce Admin should
configure to achieve this:
A. 1 Page Layout and 1 Record Type
B. 2 Page Layouts and 1 Record Type
C. 1 Page Layout and 2 Record Types
D. 2 page layouts and 2 record types
2. How many DML operations can be executed in a transaction before reaching Governor limits:
• A. 50 B. 100 C. 150 D. 200
3. Lightning Web Component can exists in Aura Component:
A. True B. False
Challenge
Thank You!
#CairoDreamin

More Related Content

PPTX
Intro to Salesforce Lightning Web Components (LWC)
PPTX
Lightning web components
PPTX
Owin and-katana-overview
PPTX
Lightning web components - Introduction, component Lifecycle, Events, decorat...
PPTX
Lightning Web Component in Salesforce
PPTX
Introduction to lightning Web Component
PPTX
Adobe Flex builder by elmagnif
PPTX
Introduction to Lightning Web Component
Intro to Salesforce Lightning Web Components (LWC)
Lightning web components
Owin and-katana-overview
Lightning web components - Introduction, component Lifecycle, Events, decorat...
Lightning Web Component in Salesforce
Introduction to lightning Web Component
Adobe Flex builder by elmagnif
Introduction to Lightning Web Component

What's hot (20)

PPT
Flex presentation1
PPTX
An Introduction to Lightning Web Components
PPTX
Integrate facebook using mule esb
PPTX
Web Development using ASP.NET - Paul Villaruel
PPTX
Live session 2 lightning web component
PPTX
Integration of linked in using mule esb
PPTX
Software components design for poc and mvp, keep it simple but be ready to sc...
PPTX
Anypoint Platform Deployment Strategies
PPTX
Infonis CBIM
PPTX
Mule esb stripe
PPT
Microsoft Tech Ed 2006 #2
PPTX
Quality sdk for your apis in minutes!
PPTX
Multiplatform
PPTX
Introduction to silverlight control 4
PPT
Rupie asp.net
PDF
synebo talk #1 Salesforce lightning
PPTX
Evolve 19 | Ameeth Palla | Adobe Asset Link - Use Cases and Pitfalls to Avoid
PPT
Microsoft Tech Ed 2006 #1
PPTX
WCF made easy with Microsoft .NET Framework 4 and Windows Server AppFabric
PPT
1st karachi salesforce platform dug meetup
Flex presentation1
An Introduction to Lightning Web Components
Integrate facebook using mule esb
Web Development using ASP.NET - Paul Villaruel
Live session 2 lightning web component
Integration of linked in using mule esb
Software components design for poc and mvp, keep it simple but be ready to sc...
Anypoint Platform Deployment Strategies
Infonis CBIM
Mule esb stripe
Microsoft Tech Ed 2006 #2
Quality sdk for your apis in minutes!
Multiplatform
Introduction to silverlight control 4
Rupie asp.net
synebo talk #1 Salesforce lightning
Evolve 19 | Ameeth Palla | Adobe Asset Link - Use Cases and Pitfalls to Avoid
Microsoft Tech Ed 2006 #1
WCF made easy with Microsoft .NET Framework 4 and Windows Server AppFabric
1st karachi salesforce platform dug meetup
Ad

Similar to Lightning Web Components (20)

PPTX
Introduction to lightning web component
PPT
Migrate To Lightning Web Components from Aura framework to increase performance
PPTX
Lightning components ver1.0
PPTX
Lightning Web Component - LWC
PDF
Introduction to Lightning Web Components
PPTX
6 reasons developers should consider salesforce lightning web components
PPTX
Implementing Vanilla Web Components
PPTX
Leveraging SharePoint as a development platform for the modern intranet
PDF
What is Difference Between LC and LWC?
PPTX
Convert your Full Trust Solutions to the SharePoint Framework (SPFx) in 1 hour
PPTX
Live Session1 lightning web component
PDF
Salesforce Auckland Developer Meetup - May 2018 - Lightning Web Components
PDF
Lightning Web Component Structure Benefit
PPTX
Components, tools and services useful for the lightning developers
PDF
Building Rich Applications with Appcelerator
PDF
Best of barcelona symposium experience
PPTX
Lightning Web Components
PPTX
Lightning Web Components by Abdul Gafoor
PDF
01 web 2.0 - more than a pretty face for soa
PPT
Sakai 2.0 Architecture Update 2005-06-09
Introduction to lightning web component
Migrate To Lightning Web Components from Aura framework to increase performance
Lightning components ver1.0
Lightning Web Component - LWC
Introduction to Lightning Web Components
6 reasons developers should consider salesforce lightning web components
Implementing Vanilla Web Components
Leveraging SharePoint as a development platform for the modern intranet
What is Difference Between LC and LWC?
Convert your Full Trust Solutions to the SharePoint Framework (SPFx) in 1 hour
Live Session1 lightning web component
Salesforce Auckland Developer Meetup - May 2018 - Lightning Web Components
Lightning Web Component Structure Benefit
Components, tools and services useful for the lightning developers
Building Rich Applications with Appcelerator
Best of barcelona symposium experience
Lightning Web Components
Lightning Web Components by Abdul Gafoor
01 web 2.0 - more than a pretty face for soa
Sakai 2.0 Architecture Update 2005-06-09
Ad

Recently uploaded (20)

PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
master seminar digital applications in india
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
01-Introduction-to-Information-Management.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
Basic Mud Logging Guide for educational purpose
O5-L3 Freight Transport Ops (International) V1.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
master seminar digital applications in india
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
01-Introduction-to-Information-Management.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
VCE English Exam - Section C Student Revision Booklet
Supply Chain Operations Speaking Notes -ICLT Program
102 student loan defaulters named and shamed – Is someone you know on the list?
Module 4: Burden of Disease Tutorial Slides S2 2025
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Pharma ospi slides which help in ospi learning
Final Presentation General Medicine 03-08-2024.pptx
Microbial diseases, their pathogenesis and prophylaxis
2.FourierTransform-ShortQuestionswithAnswers.pdf
Pre independence Education in Inndia.pdf
Basic Mud Logging Guide for educational purpose

Lightning Web Components

  • 1. Lightning Web Components Cairo Salesforce Developers Meetup February 15th 2020
  • 2. What to expect - Evolution of Salesforce UI and UI components. - LWC vs Aura. - Spring 20 LWC enhancements. - Aura Events - Lightning Messaging Service
  • 5. Enhanced productivity Use the modern language of the web: ES6+, Custom Elements, and Shadow DOM Built for performance More code executed by the browser instead of JavaScript abstractions for a blazing fast experience Compatible and easy to use Runs side-by-side with existing Lightning components and can be composed with clicks or code Introducing Lightning Web Components Generally Available Spring ‘19 New programming model built on modern web standards
  • 6. LWC and Aura compatibility Aura Component Lightning Web Component Lightning Web Component Aura Component
  • 8. Lightning Web Components - Anatomie consists of 5+ (2/3 required *) files Standard CSS Syntax, applies automatically to this component ES6 module, everything declared in module is local & scoped to the module Custom Icon (Lightning App & Community Builder) Root is <template>, Standard HTML Configuration File, specifies ● APIVersion ● Description, ● General Availability in Tools ● Label ● Targets of possible Appearance and the appropriate Config * * * + + for ! srv cmp
  • 9. Development Tools Salesforce CLIDeveloper Console Salesforce Extensions for VS Code App Builder Process Builder No Code Builders Pro Code Tools Flow Builder
  • 11. Decorators Decorator Description Accessibility Rerender - Private No @track o track a private property’s value and rerender a component when it changes private Yes @api expose a public property that defines the API for a component. public Yes @wire To read Salesforce data use a reactive wire service. private Yes
  • 12. New @Track behavior in Spring 20 @Track - All fields in a Lightning web component class are reactive. - When a field contains an object or an array, there’s a limit to the depth of changes that are tracked. To tell the framework to observe changes to the properties of an object or to the elements of an array, decorate the field with @track. To know more, Check Spring 20 release notes: https://releasenotes.docs.salesforce.com/en-us/spring20/release- notes/rn_lwc_track.htm
  • 13. Aura Component Events Component A Component B Component C Component D Application Events Comp Events
  • 14. For more information check: https://developer.salesforce.com/blogs/2019/10/lightning-message-service- developer-preview.html Lightning Message Service Visualforce LWC Aura
  • 15. learn more with our trailmix • https://sforce.co/lwc • https://developer.salesforce.com/docs/comp onent-library/documentation/lwc • https://trailhead.salesforce.com/en/content/le arn/trails/learn-to-work-with-javascript
  • 16. Send an email to ahmedkishk@gmail.com The fastest correct answer win 50% off certificate voucher Challenge
  • 17. 1. Universal Containers has 2 employees (Sales Rep and Sales Manager). It is required that only Sales Manager can see and edit Account Forecast Field. What a Salesforce Admin should configure to achieve this: A. 1 Page Layout and 1 Record Type B. 2 Page Layouts and 1 Record Type C. 1 Page Layout and 2 Record Types D. 2 page layouts and 2 record types 2. How many DML operations can be executed in a transaction before reaching Governor limits: • A. 50 B. 100 C. 150 D. 200 3. Lightning Web Component can exists in Aura Component: A. True B. False Challenge