add service worker in existing angular project code example
Example 1: angular add service worker
ng add @angular/pwa --project *project-name*
Example 2: add service worker in angular 10
ng add @angular/pwa
ng add @angular/pwa --project *project-name*
ng add @angular/pwa