SlideShare una empresa de Scribd logo
1 de 72
@simona_cotin
Simona Cotin
Cloud Dev Advocate @
Microsoft
@simona_cotin
@simona_cotin
@simona_cotin
@simona_cotin
@simona_cotin
@simona_cotin
Intro to PWA
Dive into main concepts
Angular <3 Pwa
Tools
Success stories
@simona_cotin
What?
@simona_cotin
–Wikipedia
“Progressive web apps
(PWAs) are web
applications that are
regular web pages or
websites, but can appear
to the user like traditional
applications or native
mobile applications.”
@simona_cotin
–Alex Russell
“..they’re just websites
that took all the right
vitamins”
@simona_cotin
Progressive
@simona_cotin
Responsive
@simona_cotin
Connectivity
Independent
@simona_cotin
App-like
@simona_cotin
Fresh
@simona_cotin
Safe
@simona_cotin
Discoverabl
e
@simona_cotin
Re-engageable
@simona_cotin
Installable
@simona_cotin
Linkable
@simona_cotin
@simona_cotin
How?
@simona_cotin
Baseline “Appyness”
@simona_cotin
Baseline “Appyness”
•Service workers
•Web manifest
•Delivered over HTTPS
@simona_cotin
–Netlify
“Service workers are proxies
that sit between the web page
and the network, providing
cached versions of the site
when no network connectivity
is available.”
Service Workers 🏋🏋♀️
@simona_cotin
Web Page
Service worker
Cache
Backend
@simona_cotin
Web Page
Service worker
Cache
Backend
🏋🏋🏋♀️ 🏋
@simona_cotin
Web Page
Service worker
Cache
Backend
🏋🏋🏋♀️ 🏋
@simona_cotin
Register 🏋🏋♀️
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.j
}
@simona_cotin
Scope
Lifecycle
@simona_cotin
Scope
Default ./
xyz.sw/work/sw.js xyz.sw/work
@simona_cotin
Lifecycle
@simona_cotin
// cache a cat SVG
event.waitUntil(
caches.open('static-v1').then(cache => cache.add('/cat.svg'))
);
});
self.addEventListener('activate', event => {
console.log('V1 now ready to handle fetches!');
});
self.addEventListener('fetch', event => {
const url = new URL(event.request.url);
// serve the cat SVG from the cache if the request is
// same-origin and the path is '/dog.svg'
@simona_cotin
@simona_cotin
✓Connectivity independent
✓Fresh
✓Discoverable
@simona_cotin
–Mozilla
“The web app manifest provides
information about an application (such
as name, author, icon, and description)
in a JSON text file. The purpose of the
manifest is to install web
applications to the homescreen
of a device, providing users with
quicker access and a richer
experience.
”
@simona_cotin
@simona_cotin
✓Connectivity independent
✓Fresh
✓Discoverable
✓Installable
@simona_cotin
Service workers need
to be served over
HTTPS
@simona_cotin
✓Connectivity independent
✓Fresh
✓Discoverable
✓Installable
✓Safe
@simona_cotin
@simona_cotin
Create service workers
using the angular cli
@simona_cotin
@simona_cotin
@simona_cotin
@simona_cotin
@simona_cotin
@simona_cotin
@simona_cotin
@simona_cotin
😕
@simona_cotin
@simona_cotin
@simona_cotin
@simona_cotin
@simona_cotin
🎉🎊
@simona_cotin
<meta name="theme-
color"
content="#1976d2">
@simona_cotin
🏋
@simona_cotin
@simona_cotin
What if you had an
existing app?
✓ Add service worker package
✓ Enable service worker build support in the cli
✓ Import and register service worker
✓ Create service worker conf file
@simona_cotin
Tools
@simona_cotin
@simona_cotin
@simona_cotin
@simona_cotin
@simona_cotin
@simona_cotin
@simona_cotin
Success stories
@simona_cotin
https://medium.com/dev-channel/a-pinterest-progressive-web-app-performance-case-study-3bd6
@simona_cotin
https://developers.google.com/web/showcase/2016/flipkart
@simona_cotin
–https://developers.google.com/web/progressive-web-apps/
“A new way to deliver amazing
user experiences on the web”
@simona_cotin
Thank you
@simona_cotin
Github
Azure
App
Service
https://github.com/simonaco/ul
timate-pwa
https://aka.ms/azure-paas

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Progressive Web Apps
Progressive Web AppsProgressive Web Apps
Progressive Web Apps
 
Progressive Web Apps / GDG DevFest - Season 2016
Progressive Web Apps / GDG DevFest - Season 2016Progressive Web Apps / GDG DevFest - Season 2016
Progressive Web Apps / GDG DevFest - Season 2016
 
Progressive Web App
Progressive Web AppProgressive Web App
Progressive Web App
 
Why Progressive Web App is what you need for your Business
Why Progressive Web App is what you need for your BusinessWhy Progressive Web App is what you need for your Business
Why Progressive Web App is what you need for your Business
 
Pwa demystified
Pwa demystifiedPwa demystified
Pwa demystified
 
Building a Progressive Web App
Building a  Progressive Web AppBuilding a  Progressive Web App
Building a Progressive Web App
 
Introduction to Progressive Web Apps (PWA)
Introduction to Progressive Web Apps (PWA)Introduction to Progressive Web Apps (PWA)
Introduction to Progressive Web Apps (PWA)
 
Progressive Web App
Progressive Web AppProgressive Web App
Progressive Web App
 
PWA - Progressive Web App
PWA - Progressive Web AppPWA - Progressive Web App
PWA - Progressive Web App
 
Progressive Web-App (PWA)
Progressive Web-App (PWA)Progressive Web-App (PWA)
Progressive Web-App (PWA)
 
PWA
PWAPWA
PWA
 
Progressive web apps
Progressive web appsProgressive web apps
Progressive web apps
 
Progressive Web Apps
Progressive Web AppsProgressive Web Apps
Progressive Web Apps
 
Progressive Web Apps are here!
Progressive Web Apps are here!Progressive Web Apps are here!
Progressive Web Apps are here!
 
Playwright Begginers Presentation
Playwright Begginers PresentationPlaywright Begginers Presentation
Playwright Begginers Presentation
 
Progressive Web APP ( PWA )
Progressive Web APP ( PWA ) Progressive Web APP ( PWA )
Progressive Web APP ( PWA )
 
Pwa.pptx
Pwa.pptxPwa.pptx
Pwa.pptx
 
Why Progressive Web Apps For WordPress - WordCamp Finland
Why Progressive Web Apps For WordPress - WordCamp FinlandWhy Progressive Web Apps For WordPress - WordCamp Finland
Why Progressive Web Apps For WordPress - WordCamp Finland
 
React Workshop
React WorkshopReact Workshop
React Workshop
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
 

Similar a Build progressive web apps with Angular

Seeing through the Fog: Navigating the Security Landscape of a Cloud-First World
Seeing through the Fog: Navigating the Security Landscape of a Cloud-First WorldSeeing through the Fog: Navigating the Security Landscape of a Cloud-First World
Seeing through the Fog: Navigating the Security Landscape of a Cloud-First World
Ben Johnson
 

Similar a Build progressive web apps with Angular (20)

PWAs, are we there yet?!
PWAs, are we there yet?!PWAs, are we there yet?!
PWAs, are we there yet?!
 
Pwa, are we there yet?!
Pwa, are we there yet?!Pwa, are we there yet?!
Pwa, are we there yet?!
 
Build a look alike engine with machine learning and Angular
Build a look alike engine with machine learning and AngularBuild a look alike engine with machine learning and Angular
Build a look alike engine with machine learning and Angular
 
Introduction to Progressive Web Apps, Google Developer Summit, Seoul - South ...
Introduction to Progressive Web Apps, Google Developer Summit, Seoul - South ...Introduction to Progressive Web Apps, Google Developer Summit, Seoul - South ...
Introduction to Progressive Web Apps, Google Developer Summit, Seoul - South ...
 
An introduction to social media for nonprofits
An introduction to social media for nonprofitsAn introduction to social media for nonprofits
An introduction to social media for nonprofits
 
Doppelganger - ng-conf
Doppelganger - ng-confDoppelganger - ng-conf
Doppelganger - ng-conf
 
Seeing through the Fog: Navigating the Security Landscape of a Cloud-First World
Seeing through the Fog: Navigating the Security Landscape of a Cloud-First WorldSeeing through the Fog: Navigating the Security Landscape of a Cloud-First World
Seeing through the Fog: Navigating the Security Landscape of a Cloud-First World
 
From LazyCoffee to Appstore - The Key stages of app development
From LazyCoffee to Appstore - The Key stages of app developmentFrom LazyCoffee to Appstore - The Key stages of app development
From LazyCoffee to Appstore - The Key stages of app development
 
Lean Startup Workshop for Startup Leadership Program
Lean Startup Workshop for Startup Leadership ProgramLean Startup Workshop for Startup Leadership Program
Lean Startup Workshop for Startup Leadership Program
 
Build Nodejs APIs using Serverless
Build Nodejs APIs  using Serverless Build Nodejs APIs  using Serverless
Build Nodejs APIs using Serverless
 
7 Tips for Optimizing Mobile App Metrics
7 Tips for Optimizing Mobile App Metrics7 Tips for Optimizing Mobile App Metrics
7 Tips for Optimizing Mobile App Metrics
 
50 Great Products For Startups
50 Great Products For Startups50 Great Products For Startups
50 Great Products For Startups
 
Why you should move your apps to the cloud
Why you should move your apps to the cloudWhy you should move your apps to the cloud
Why you should move your apps to the cloud
 
Mobile Apps - tactic or strategy?
Mobile Apps - tactic or strategy?Mobile Apps - tactic or strategy?
Mobile Apps - tactic or strategy?
 
Mobile Apps - tactic or strategy?
Mobile Apps - tactic or strategy?Mobile Apps - tactic or strategy?
Mobile Apps - tactic or strategy?
 
Mobile Apps - tactic or strategy?
Mobile Apps - tactic or strategy?Mobile Apps - tactic or strategy?
Mobile Apps - tactic or strategy?
 
[XamarinDay] Xamarin History - From 0 to microsoft acquisition !
[XamarinDay] Xamarin History - From 0 to microsoft acquisition ![XamarinDay] Xamarin History - From 0 to microsoft acquisition !
[XamarinDay] Xamarin History - From 0 to microsoft acquisition !
 
What companies need to know about web accessibility in 2020
What companies need to know about web accessibility in 2020What companies need to know about web accessibility in 2020
What companies need to know about web accessibility in 2020
 
The Future of Content Marketing
The Future of Content MarketingThe Future of Content Marketing
The Future of Content Marketing
 
MAU Vegas 2016 — Tackling Retention During Activation
MAU Vegas 2016 — Tackling Retention During ActivationMAU Vegas 2016 — Tackling Retention During Activation
MAU Vegas 2016 — Tackling Retention During Activation
 

Más de Simona Cotin

Más de Simona Cotin (14)

Tips and tricks on how to stand out with your bio and talk abstract
Tips and tricks on how to stand out with your bio and talk abstractTips and tricks on how to stand out with your bio and talk abstract
Tips and tricks on how to stand out with your bio and talk abstract
 
Serverless at the end of the Universe
Serverless at the end of the UniverseServerless at the end of the Universe
Serverless at the end of the Universe
 
Tech Roadmap
Tech RoadmapTech Roadmap
Tech Roadmap
 
Build scalable APIs using GraphQL and Serverless
Build scalable APIs using GraphQL and ServerlessBuild scalable APIs using GraphQL and Serverless
Build scalable APIs using GraphQL and Serverless
 
Intro GraphQL
Intro GraphQLIntro GraphQL
Intro GraphQL
 
Hop on the serverless adventure - International Javascript London
Hop on the serverless adventure - International Javascript LondonHop on the serverless adventure - International Javascript London
Hop on the serverless adventure - International Javascript London
 
State management with ngRX
State management with ngRXState management with ngRX
State management with ngRX
 
Deploy Angular to the Cloud (ngBucharest)
Deploy Angular to the Cloud (ngBucharest)Deploy Angular to the Cloud (ngBucharest)
Deploy Angular to the Cloud (ngBucharest)
 
Build and Deploy Angular to the Cloud
Build and Deploy Angular to the CloudBuild and Deploy Angular to the Cloud
Build and Deploy Angular to the Cloud
 
Serverless adventure tooling
Serverless adventure toolingServerless adventure tooling
Serverless adventure tooling
 
Code and Deploy Angular to the Cloud
Code and Deploy Angular to the CloudCode and Deploy Angular to the Cloud
Code and Deploy Angular to the Cloud
 
Deploy Angular to the Cloud
Deploy Angular to the CloudDeploy Angular to the Cloud
Deploy Angular to the Cloud
 
From Angular to React and back again
From Angular to React and back againFrom Angular to React and back again
From Angular to React and back again
 
Music Finder
Music FinderMusic Finder
Music Finder
 

Último

introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 

Último (20)

VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 

Build progressive web apps with Angular

Notas del editor

  1. Hey everyone, this is great! Thank you for being here!
  2. My name is simona and I work as a cloud developer advocate for microsoft and part my role is to make sure that javascript is a first class citizen in the cloud.
  3. And my role is also what makes this talk to exist for very selfish reasons! Just like this meme says, most of a developer advocate’s life is actually spent on a plane
  4. Or on a train on the way to a plane, or at conferences or event super cool hotels that
  5. Have very bad internet! And many times it happens that just before a conference like this one, I have one last thing to add to a demo or slide tweak and ovviously the internet gods are not very good to me
  6. And it kinda feels like this, every single time! So if it were for me, I would make the entire web progressive web apps so that at least sites that I visited in the past will give me content.
  7. Progressive web apps are about much more than just the offline experience. They are about creating a better user experience overall. And because there are many definitions of PWA let’s start with one of the definitions I find most approachable
  8. And a definition from wikipedia would be:
  9. Or another definition that I really like by Ales Russell, And some of you might not now, but Alex and his wife, Frances have actually coined the Progressive Web Applications term. While they were out having dinner :) They also came up with the list of things that make up a progressive web app. https://infrequently.org/2015/06/progressive-apps-escaping-tabs-without-losing-our-soul/
  10. And the fist thing on the list was that these apps should be progressive, meaning that the user experience should enhance as the user uses more the app, they should also work for every user, regardless of browser choice
  11. to fit any form factor, desktop, mobile, tablet, or forms yet to emerge.
  12. Your app should still work offline, or on low quality networks.
  13. Feel like an app to the user with app-style interactions and navigation.
  14. Always up-to-date thanks to the service worker update process.
  15. Served via HTTPS to prevent snooping and ensure content hasn’t been tampered with.
  16. Are identifiable as “applications” thanks to W3C Manifests and Service Worker registration scope allowing search engines to find them
  17. Make re-engagement easy through features like push notifications.
  18. Allow users to “keep” apps they find most useful on their home screen without the hassle of an app store.
  19. Easily shared via a URL and do not require complex installation.
  20. So how do make this happen, in code?
  21. Well, there is this thing called baseline appyness which defines the basic minimal requirements for an app to be a progressive web app. And the first requirement is to implement service workers. The second important thing is to include a web manifest. And all should be served over HTTPS.
  22. So let’s dive into each of these and understand what they are. https://www.netlify.com/blog/2017/10/31/service-workers-explained/
  23. And if we were to look at a diagram of how this works, we have the web page and the service worker on the same side of the wire, and then over the network we can go retrieve data from the server or we can get that from a cache that sits on the same side as service workers
  24. So in a request-response model, we first make a request from the web page, the request is intercepted by the service worker, which then inspects it, works hard to understand where is should go, and decided to retrieve data from the network
  25. Or it can decide to first retrieve the data from the cache and return that to the user and only after that go over the network and update if necessary.
  26. For a service worker to exist we need to first register it. And we do that by calling the register method on the service worker object available in the browser. But before that we need to check if we have support for service workers.
  27. And a service worker has a scope and a lifecycle that we can tap into
  28. The scope defines which requests can be intercepted by a particular service worker and by default its the current folder and everything bellow. So if we were to register a worker at xyz.sw/work then all requests to those domain or subdomain would be intercepted by our service worker.
  29. A service worker has a lifecycle that is completely separate from your web page. A service workers life starts after it registers, it gets into the installing stage and from there it can either error or get activated. And then it can move into idle if nothing happens and either terminated of fetch.
  30. If you’re wondering what’s the current support for service workers, its fully supported in Firefox and Chrome, Chrome for android and Samsung internet and it’s in development for edge, safari and safari for iOS.
  31. Service workers enable us to let our users interact with our app even when they’re offline which is a great win.
  32. https://developer.mozilla.org/en-US/docs/Web/Manifest https://developers.google.com/web/fundamentals/web-app-manifest/
  33. • Connectivity independent - Service workers allow work offline, or on low quality networks. • Fresh - Always up-to-date thanks to the service worker update process. • Discoverable - Are identifiable as “applications” thanks to W3C manifests[6] and service worker registration scope allowing search engines to find them. • Safe - Served via HTTPS to prevent snooping and ensure content hasn’t been tampered with. • Installable - Allow users to “keep” apps they find most useful on their home screen without the hassle of an app store.
  34. And this is what makes our basic progressive web app.
  35. So let’s see what happens when we take that to Angular
  36. There are a few options here that can help us get started
  37. And in our app module we import our service worker and then register. And what you don’t see here is that we are only enabling the service worker for production. Can you guess why? Well, as you might’ve imagined, because the service worker caches things you really don’t want in you development process to not have the latest version of your app.
  38. The Angular CLI creates a service worker configuration file, called ngsw-config.json. The configuration file controls how the service worker caches files and data resources.
  39. http://www.pwabuilder.com/
  40. https://github.com/pinterest/service-workers
  41. https://github.com/tastejs/hacker-news-pwas
  42. https://github.com/angular/angular-cli
  43. The Pinterest PWA started because they were focused on international growth, which led them to the mobile web. https://medium.com/dev-channel/a-pinterest-progressive-web-app-performance-case-study-3bd6ed2e6154
  44. • Reliable - Load instantly and never show the downasaur, even in uncertain network conditions. • Fast - Respond quickly to user interactions with silky smooth animations and no janky scrolling. • Engaging - Feel like a natural app on the device, with an immersive user experience.