Automatic Progressive Web Apps using Angular Service Worker
summary
Automatic setup uses Angular CLI flags to add an Angular Service Worker and drops ngsw-worker.js and ngsw.json into the dist on production builds, or can be retrofitted to CLI 1.5 by generating the manifest, copying files and adding npm scripts. Configuration file declares asset groups and data groups with installMode/updateMode and caching policies (e.g. network-first or cache-first). Push uses SwPush subscription and a backend payload with a notification property, and updates surface through the available observable so the app can prompt to reload.
AI-written summary · about
chapters (15)
- 0:00Start
- 1:48Progressive Web App
- 2:0810 characteristics
- 2:34Service Worker API
- 4:36Frameworks
- 5:33Generate a new Angular PWA
- 7:51Registering NGSW
- 8:38NCSW configuration file
- 10:52App shell / on-demand
- 13:45Manual build support for Angular CLI 1.5
- 17:36App version updates
- 18:51Check for updates
- 19:52Main available features
- 20:09Angular Service Worker advantages
- 20:58On the roadmap
related talks
43mAutomatic Progressive Web Apps using the Angular Mobile Toolkit
25mCreating an Angular Progressive Web App: which option will work better for you?
30mAutomatic Progressive Web Apps using the Angular Mobile Toolkit
24mBuild progressive web apps with Angular
35mProgressive Web Apps with Angular 2
54mBuilding an Angular PWA: Angular Service Worker or Workbox?
39mPWA & Front-end Frameworks
29mBuild progressive web apps with Angular
