proxy setup using service worker for angular 8 code example
Example 1: angular add service worker
ng add @angular/pwa --project *project-name*
Example 2: ServiceWorkerModule
ng add @angular/pwa
ng add @angular/pwa --project *project-name*
ng add @angular/pwa