Introduction to lightning components

22
Introduction To Lightning Components #SalesforceSaturday Mohith Shrivastava Salesforce MVP CodeScience INC Blog - cloudyworlds.blogspot.com

Transcript of Introduction to lightning components

Page 1: Introduction to lightning components

Introduction To Lightning Components#SalesforceSaturday

Mohith Shrivastava

Salesforce MVP

CodeScience INC

Blog - cloudyworlds.blogspot.com

Page 2: Introduction to lightning components

Prerequisites1.You Have Some Familiarity With Javascript

2.You Understand DOM Model

3.Familiarity With CSS

4.Worked On Salesforce Development With Apex and Visualforce

Page 3: Introduction to lightning components

Single Page Application

Page 4: Introduction to lightning components

Web Components

Page 5: Introduction to lightning components

Difference between Visualforce and Lightning ComponentsVisualforce

1.Monolithic unless developers use Visualforce components and templates

2.Building SPA applications without using frameworks like angular ,react etc is tedious

Lightning Components

1.Framework enforces developers to break application into components

2.Building SPA is lot easier.Event driven approach .(Publish and Subscribe model)

Page 6: Introduction to lightning components

Why Lightning Components?1. Reusability(App Builder,Community Builder,SF1 ,Visualforce,With

Lightning out take components outside SFDC)

2. Responsive (fits any device)

3. Event Driven approach

Page 7: Introduction to lightning components

MVC In Lightning

Page 8: Introduction to lightning components

Lightning Component Bundle

Page 10: Introduction to lightning components

Example of a Component

Page 11: Introduction to lightning components

Attributes - They are Objects or Variables

Page 12: Introduction to lightning components

Expressions

Page 13: Introduction to lightning components

Styling Lightning Components

Page 14: Introduction to lightning components

Events

Page 15: Introduction to lightning components

Apex For Lightning

Page 16: Introduction to lightning components

SalesLeaderBoard App DemoKey Take Aways

1.Publish Subscribe Model

2.Events publisher and handling

3.Interfaces for App Builders ,Community Builders

4.Use design attributes for admins

Page 17: Introduction to lightning components

Building a Simple Youtube search component for community builders1. Implement

ForceCommunity:availableForAllPageTypes

2. Design Tokens and Design Variables for community builder

3. Callouts via Apex

Page 18: Introduction to lightning components

Building Components for Record Home pages and Home page1. Implement Flexipage:availableForRecordHome

2. Design components for Home page

Page 19: Introduction to lightning components

Lightning Out 1. Mashup Visualforce and Lightning components

2. Heroku App Demo

Page 20: Introduction to lightning components

ReferencesMastering Lightning Components -1

Mastering Lightning Components -2

Trailhead

Lightning Component Developer guide

Page 21: Introduction to lightning components

Questions1.Bring it on Stackexchange - Be precise and make sure you add code reference

2.Developer Forums

3.#askforce

Page 22: Introduction to lightning components

Thank youOrganiser - Salesforce Bangalore User Group (Madan and Kishore)

Twitter - Mohith - @msrivastav13 Madan - @madankhichi