I am following angular\'s best practice in order to make PWA. After making production build (ng build --prod --aot), I am also running the service worker from
ng build --prod --aot
If you want to use other browsers that don't support TimKVU answer then the solution is to use ngrok (https://ngrok.com)
It sets up a secure tunnel to whatever server you are using. You run it with:
ngrok http 4200
Simply connect to the domain shown on screen.