~/talk

Building an Angular PWA Angular Service Worker or Workbox?

Talkat Angular Connect 2018 · on Thursday, 2018-11-08· [pwa, angular]

Clear comparison of two concrete workflows: one-line setup with Angular CLI that generates ngsw.json and copies ngsw-worker so an app goes offline in the demo, versus a Workbox build script that adds workbox-build as a devDependency and runs injectManifest via workbox-build to populate a src/service-worker. Covers update UX (Angular provides SWUpdate observable; Workbox can use broadcast update (Chrome and Firefox only) or service worker lifecycle events), caching strategies, manual registration, push format requirements, and what actually needs coding.

AI-written summary · about

  1. 0:00Intro
  2. 2:22Cross-platform?
  3. 3:45UX advantages?
  4. 6:58Let's build an App shell
  5. 9:17Automation
  6. 11:03Configuration file
  7. 13:05Working modes
  8. 14:23Build script configuration
  9. 14:58Source service worker
  10. 15:59Build flow integration
  11. 17:11App version updates
  12. 19:15Hint: Provide a version description
  13. 20:56Option #2: Service worker lifecycle
  14. 21:47Requirements
  15. 23:48register-service-worker
  16. 26:15Configuring strategies
  17. 27:11Hint: Support API versioning
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.