I connect files of an angulyar, in a config I specify the folder in which my script lies

app: 'app', 

with the usual project host on IIS under url type: http://localhost:57927/ everything works perfectly. However, it costs me to place the project on the IIS by url http://localhost/fgWeb/ (such a requirement) - immediately the console error GET http://localhost/app/main.js 404 (Not Found) . The app folder is not added to Source .

It seems to me that something needs to be done with a line indicating the folder (on top of my message), but I do not know what.

    1 answer 1

    Set up <base href="">

    In href write the address of an application of the type href="/app/"