I\'m serving Angular 2 application with nginx using location section this way:
location / { try_files $uri $uri/ /index.html =404; }
try_file
Just to be safe :)
location = /index.html { add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; expires off; }