SlideShare a Scribd company logo
Angular2 + Ng-Lightning + Lightning
Design System = Great Apps
Gordon Bockus
Principal Engineer
gbockus@spanning.com
@gordonk66
Patricia Cifra
Senior Engineer
pcifra@spanning.com
@pncifra
Gordon Bockus
Principal Software Engineer
Patricia Cifra
Senior Software Engineer
Booth: #106
Chapter 1
Angular 2 Ng-Lightning Tools and Debugging
Chapter 2 Chapter 3 Chapter 4
Lightning Design
Framework
Lighting Design System
Collection of design patterns, components, and guidelines for creating unified UI for the Salesforce
ecosystem.
Not to be confused with Lightning Apps/Components
VisualForce/Lightning/Heroku/iOS and Angular!
Angular2
A tip of the Iceberg…
Angular 2
Not Angular 1
Angular 2 - Typescript
Types
• Native Types: boolean, int, double, etc
• Custom Types, enums, generics
Enabled Advanced Tooling
• Visual Studio Code
• WebStorm
• Classes
• Inheritance
es6
Angular 2 - Dependency Injection
Dependency Injection is now handled through imports and configuration.
Angular 2 - Templates
Interpolation/Property Binding - {}, []
• Properties of directive or component
• expressions {{ 1 + 1 }}
• {{myVal}} or [myVal] = “expression”
• <img [src]="heroImageUrl">
Event Binding - () template -> js
• (click)=“onSave()”
Two-way Data binding -[()]
• <input [(ngModel)]="heroName">
Ng-Lightning
A library that contains native Angular 2 components and
directives written in TypeScript using the Lightning Design
System CSS framework.
• http://ng-lightning.github.io/ng-lightning/
Limitations
Constraints with using framework in Salesforce
• Lighting LockerService prevents importing of 3rd party/outside libraries
• Same limitations as other JavaScript frameworks for Lightning Components
Where it’s great
Standalone App: Creating an Angular 2 App with Lightning Design UI that interacts with
Salesforce REST services
Visual Force page: Transpile your TypeScript code and upload the JavaScript code.
Canvas App: Create a web app and surface it within a Canvas App
Demo
A simple ToDo List
Debugging
Augury - Chrome extension for debugging and profiling Angular 2 applications.
• Very similar to Chrome Developer Tools
• View into ng-2 dependency injection
• Visualize Router tree
Tools
VS Code - https://code.visualstudio.com/
• Fluent in Typescript
• Free
• Lightweight
• Extensions to enable NG2
WebStorm / IntelliJ - https://www.jetbrains.com/webstorm/
• Our IDE of choice
• Free for OSS
• One stop shop for all development tasks
Summary
Review of Topics
• Lightning Design System
• Angular 2 offers powerful new features
• Ng-Lighting built on top of Angular 2 with components following Lightning Design principles
• Use in web apps, VF, or canvas.
• Tools and debugging tips
Resources
Links
• Ng-2 Quick start https://angular.io/docs/ts/latest/quickstart.html
• Ng-2 Tutorial: https://angular.io/docs/ts/latest/tutorial/
• Augury: https://augury.angular.io/
• VS Code: https://code.visualstudio.com/
• WebStorm: https://www.jetbrains.com/webstorm/
• demo app: https://github.com/pncifra/ng-lightning-demo
Questions?
Thank Y u

More Related Content

PPTX
Angular2 + New Firebase in Action
PDF
Building a Lightning App with Angular Material Design
PPTX
Phonegap android angualr material design
PPTX
GAB2017 - Azure function to build serverless SharePoint apps
PPT
Building 3D Models with Skycatch & Autodesk Recap API's
PPTX
Angular 4 Introduction Tutorial
PPTX
Logic apps and PowerApps - Integrate across your APIs
PPTX
Angular 2
Angular2 + New Firebase in Action
Building a Lightning App with Angular Material Design
Phonegap android angualr material design
GAB2017 - Azure function to build serverless SharePoint apps
Building 3D Models with Skycatch & Autodesk Recap API's
Angular 4 Introduction Tutorial
Logic apps and PowerApps - Integrate across your APIs
Angular 2

What's hot (20)

PPTX
Making share point rock with angular and react
PPTX
Introduction to angular | Concepts and Environment setup
PPTX
Serverless patterns v2 public
PDF
Swagger UI
PPTX
PPSX
Angular 4 fronts
PPTX
Building Push Triggers for Logic Apps
PDF
Developing a Demo Application with Angular 4 - J2I
PPTX
Introduction to angular 2
PDF
Quick introduction to Angular 4 for AngularJS 1.5 developers
PPTX
.NET MAUI with .NET 6 (December 2021, Preview 10)
PPTX
Talk for DevFest 2021 - GDG Bénin
PPTX
Serverless Orchestration with Azure Durable Functions
PDF
Make your animations perform well - Anna Migas - Codemotion Rome 2017
PDF
TechEvent 2019: Nachhaltige Client-Architekturen mit Angular Elements; Thomas...
PDF
Angular 10 course_content
PDF
Building Faster With Your Team's UI Kit
PDF
Building Composable Serverless Apps with IOpipe
PDF
Angular Meetup 1 - Angular Basics and Workshop
PPTX
Using and extending Alfresco Content Application
Making share point rock with angular and react
Introduction to angular | Concepts and Environment setup
Serverless patterns v2 public
Swagger UI
Angular 4 fronts
Building Push Triggers for Logic Apps
Developing a Demo Application with Angular 4 - J2I
Introduction to angular 2
Quick introduction to Angular 4 for AngularJS 1.5 developers
.NET MAUI with .NET 6 (December 2021, Preview 10)
Talk for DevFest 2021 - GDG Bénin
Serverless Orchestration with Azure Durable Functions
Make your animations perform well - Anna Migas - Codemotion Rome 2017
TechEvent 2019: Nachhaltige Client-Architekturen mit Angular Elements; Thomas...
Angular 10 course_content
Building Faster With Your Team's UI Kit
Building Composable Serverless Apps with IOpipe
Angular Meetup 1 - Angular Basics and Workshop
Using and extending Alfresco Content Application
Ad

Viewers also liked (20)

PDF
Environmental value systems: Lake Victoria vs Gulf of California
PDF
ChtiJUG - Introduction à Angular2
PDF
An introduction to Angular2
PDF
Technozaure - Angular2
PPTX
How to Fast Track your AppExchange App
KEY
Intro to IndexedDB (Beta)
PDF
Magnolia & Angular JS - an Approach for Javascript RIAs Delivered by a CMS
PDF
Using Design System in Lightning Components
PPS
Google Office in Zurich, Switzerland
PPTX
Finjs - Angular 2 better faster stronger
PPTX
golintを使おう
PPTX
Firebase ng2 zurich
PPTX
前端工程師的告白: 親愛的,開源的物聯網好好玩呀!
PDF
How Angular2 Can Improve Your AngularJS Apps Today!
PPTX
Link removals prezzo
PPTX
Power point design
PDF
Violão -curso_-_varios_acordes_-_muito_bom
PDF
Art collection On The Beach - acrylic paintings
PDF
Senatore Antonio d'Alì - ringraziamenti
PPTX
SharePoint Saturday Barcelona 2016
Environmental value systems: Lake Victoria vs Gulf of California
ChtiJUG - Introduction à Angular2
An introduction to Angular2
Technozaure - Angular2
How to Fast Track your AppExchange App
Intro to IndexedDB (Beta)
Magnolia & Angular JS - an Approach for Javascript RIAs Delivered by a CMS
Using Design System in Lightning Components
Google Office in Zurich, Switzerland
Finjs - Angular 2 better faster stronger
golintを使おう
Firebase ng2 zurich
前端工程師的告白: 親愛的,開源的物聯網好好玩呀!
How Angular2 Can Improve Your AngularJS Apps Today!
Link removals prezzo
Power point design
Violão -curso_-_varios_acordes_-_muito_bom
Art collection On The Beach - acrylic paintings
Senatore Antonio d'Alì - ringraziamenti
SharePoint Saturday Barcelona 2016
Ad

Similar to Angular2 + Ng-Lightning + Lightning Design System = Great Apps (20)

PPTX
AngularConf2016 - A leap of faith !?
PDF
IPT angular2 typescript SPA 2016
PDF
Bridging the gap between UX and development - A Storybook by Marko Letic at F...
PDF
Bridging the gap between UX and development – A Storybook
PPTX
PPTX
Cross Platform Angular 2 and TypeScript Development
PDF
New World of Angular (v2+)
PPTX
Angular
PPTX
lightning presentation
PDF
Salesforce lightning development 101
PPTX
Angular 2.0
PPTX
What's new in Angular 2?
PPTX
SFDC Lightning Demo
PPTX
From Angular to Angular 2 via the UpgradeAdapter
PDF
Angular2 tutorial
PDF
AngularJS RTP Slides - Angular 2 Demo #ngtattoo with Angular CLI, Newest New ...
PPT
Angular.ppt
PDF
Lightning Components Explained
PPTX
Angularjs2 presentation
PPTX
Angularj2.0
AngularConf2016 - A leap of faith !?
IPT angular2 typescript SPA 2016
Bridging the gap between UX and development - A Storybook by Marko Letic at F...
Bridging the gap between UX and development – A Storybook
Cross Platform Angular 2 and TypeScript Development
New World of Angular (v2+)
Angular
lightning presentation
Salesforce lightning development 101
Angular 2.0
What's new in Angular 2?
SFDC Lightning Demo
From Angular to Angular 2 via the UpgradeAdapter
Angular2 tutorial
AngularJS RTP Slides - Angular 2 Demo #ngtattoo with Angular CLI, Newest New ...
Angular.ppt
Lightning Components Explained
Angularjs2 presentation
Angularj2.0

Recently uploaded (20)

PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPT
Teaching material agriculture food technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Electronic commerce courselecture one. Pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Encapsulation theory and applications.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Building Integrated photovoltaic BIPV_UPV.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Digital-Transformation-Roadmap-for-Companies.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Teaching material agriculture food technology
Unlocking AI with Model Context Protocol (MCP)
Electronic commerce courselecture one. Pdf
Encapsulation_ Review paper, used for researhc scholars
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Diabetes mellitus diagnosis method based random forest with bat algorithm
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Encapsulation theory and applications.pdf
20250228 LYD VKU AI Blended-Learning.pptx
sap open course for s4hana steps from ECC to s4
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Review of recent advances in non-invasive hemoglobin estimation
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
MYSQL Presentation for SQL database connectivity
Profit Center Accounting in SAP S/4HANA, S4F28 Col11

Angular2 + Ng-Lightning + Lightning Design System = Great Apps

  • 1. Angular2 + Ng-Lightning + Lightning Design System = Great Apps Gordon Bockus Principal Engineer [email protected] @gordonk66 Patricia Cifra Senior Engineer [email protected] @pncifra
  • 5. Chapter 1 Angular 2 Ng-Lightning Tools and Debugging Chapter 2 Chapter 3 Chapter 4 Lightning Design Framework
  • 6. Lighting Design System Collection of design patterns, components, and guidelines for creating unified UI for the Salesforce ecosystem. Not to be confused with Lightning Apps/Components VisualForce/Lightning/Heroku/iOS and Angular!
  • 7. Angular2 A tip of the Iceberg…
  • 9. Angular 2 - Typescript Types • Native Types: boolean, int, double, etc • Custom Types, enums, generics Enabled Advanced Tooling • Visual Studio Code • WebStorm • Classes • Inheritance es6
  • 10. Angular 2 - Dependency Injection Dependency Injection is now handled through imports and configuration.
  • 11. Angular 2 - Templates Interpolation/Property Binding - {}, [] • Properties of directive or component • expressions {{ 1 + 1 }} • {{myVal}} or [myVal] = “expression” • <img [src]="heroImageUrl"> Event Binding - () template -> js • (click)=“onSave()” Two-way Data binding -[()] • <input [(ngModel)]="heroName">
  • 12. Ng-Lightning A library that contains native Angular 2 components and directives written in TypeScript using the Lightning Design System CSS framework. • http://ng-lightning.github.io/ng-lightning/
  • 13. Limitations Constraints with using framework in Salesforce • Lighting LockerService prevents importing of 3rd party/outside libraries • Same limitations as other JavaScript frameworks for Lightning Components
  • 14. Where it’s great Standalone App: Creating an Angular 2 App with Lightning Design UI that interacts with Salesforce REST services Visual Force page: Transpile your TypeScript code and upload the JavaScript code. Canvas App: Create a web app and surface it within a Canvas App
  • 16. Debugging Augury - Chrome extension for debugging and profiling Angular 2 applications. • Very similar to Chrome Developer Tools • View into ng-2 dependency injection • Visualize Router tree
  • 17. Tools VS Code - https://code.visualstudio.com/ • Fluent in Typescript • Free • Lightweight • Extensions to enable NG2 WebStorm / IntelliJ - https://www.jetbrains.com/webstorm/ • Our IDE of choice • Free for OSS • One stop shop for all development tasks
  • 18. Summary Review of Topics • Lightning Design System • Angular 2 offers powerful new features • Ng-Lighting built on top of Angular 2 with components following Lightning Design principles • Use in web apps, VF, or canvas. • Tools and debugging tips
  • 19. Resources Links • Ng-2 Quick start https://angular.io/docs/ts/latest/quickstart.html • Ng-2 Tutorial: https://angular.io/docs/ts/latest/tutorial/ • Augury: https://augury.angular.io/ • VS Code: https://code.visualstudio.com/ • WebStorm: https://www.jetbrains.com/webstorm/ • demo app: https://github.com/pncifra/ng-lightning-demo