Please let me ask a question.
Firstly,I would like to build angular progressive web app.
And I found that I can use angular native service worker (ngsw) or also framework-agnostic library called Workbox to build progressive web app.
Which approach is easier to start with, which library is simpler to use, and which resulting PWA is more convenient to maintain.
Which library should I use ,please advice me(ngsw or workbox)
Please can somebody explain with pros and cons.
I took this information from the International Javascript Conference and the Angular University.
Both have been created for the same purpose, to implement a service worker in your projects, ngsw is easier and workbox is more configurable.
Angular Service Worker (ngsw)
ng add @angular/pwa --project <name of project as in angular.json>
In a sentence...
Workbox
npm install workbox-build --save-dev
In a sentence...