I have simple angular2-cli app (one page with model driven form - no router involved). With \"ng serve\" all works fine. I made production version with ng build --product. I
Here is how I solve this situation;
ng build
dist
folderbase href
in your index.html from /
to /yourAliasNameOnIIS
Use this web.config for redirecting requests to your index.html page
Convert your virtual directory to a web application
You can also use ng build --deploy-url "/yourAliasNameOnIIS"
to change src path in dist/index.html
.
I hope it helps!