I am learning Angularjs4, while I am testing code everything is going well, that is, executing
ng serve
The problem occurs when I try to compile the project for production, the statement that I execute is the following
ng build --prod
I understand that this sentence must produce the compiled code of angular in the "dist" folder of the project, and in fact the folder is created and filled with different files, among which is an index.html, but when I enter that folder to via localhost, the screen stays with the message
Loading...
It seems that the code is not linking with the framework.
I solved the problem by adding "./" to the beginning of each of the generated paths in the "index.html" file in the "dist" folder after executing the command
Here I leave the "index.html" file already modified, I repeat, just place "./" at the beginning of each path