Q:

how to host angular2 application in IIS?

I have quickstart project of Angular2. currently I am running my application using command "npm start".
I want to host my application in IIS.
I created a website in IIS and given physical path to my quickstart folder. Now I am getting error "System" is not defined.
I have "system.config.js" file in my "src" folder. application works when I use "npm start" but doesn't work when I access using IIS "http://localhost/quickstart/src"  url.

A:

I followed below steps to host application in IIS.
1. build angular application using ng build --prod
2. copy dist folder to a new folder
3. created virtual directory for this new folder in IIS.
it worked.

