This is a PWA sample using Angular CLI.
This sample contains following features.
$ npm i -g @angular/cli
$ ng new my-app --routing --style=css
$ cd my-app
$ ng add @angular/pwa
$ ng g app-shell --project=my-app
ng run
to build the app$ ng run my-app:app-shell
Congratulations ! Your Angular application is built in dist/my-app/browser
.
You can see the app by using a static file server.
$ npx serve -s dist/my-app/browser