Angular - Unhandled Navigation Error after building
问题 I have built a simple angular app with 2 routes through the following command: ng build --aot --prod --base-href ./ Then i open the index.html file located in the dist folder and the app runs but the the routes don't work and i get the following warning on console: Hope to have explained my question well. Thanks in advance. 回答1: Using Angular routing engine will force you to host your app in some server (e.g. IIS, NodeJS etc.) A simple angular app without routes can run without hosting it on