How to configure routing when working with Electron & Web - nstudio/xplat GitHub Wiki

When using Angular routing you can use the modern HTML5 push state routing resolution (non "hash") you are commonly used to these days. However when packaging an Electron app for distribution this can cause problems since it's loading an index.html file within the Electron app.

Take a look at this example which shows how to properly configure your web app to handle both: https://github.com/nstudio/xplat-sample-electron-routing