Just add @angular/pwa module to your angular app using the cli.
1
$ ng add @angular/pwa
This adds the PWA module and generates the default PWA featuers with the service-worker configured for basic assets cache. It also generates a manifest.webmanifest and few icons.
Update ngsw-config.json
If you have more assets to be cached by the service worker to be more of a PWA, update the ngsw-config.json like below:
About Ashok: Started as Java but mutated myself with some frontend scripting skills and boom Javascript guy too. Still evolving in the vast NodeJS eco-system.
Backpacker with a bike
Trying hard to be a violinist
Reads Medium to know the buzz words and follows developer memes.