If not installed, install urlrewrite for IIS from here: https://www.iis.net/downloads/microsoft/url-rewrite
You may need to reboot your computer.
step 1: Build angular application
Option 1: If you want to deploy the application in root folder,
ng build –prod
double – infront of prod
Option 2: If you want to deploy the application inside a folder:
ng build –prod –base-href /FOLDERNAME/
double – infront of prod and base-href
Either option will create a dist folder inside your angular application
Step 2: Create a folder(FOLDERNAME) in your c drive (or anywhere) and copy all content from dist folder to this newly created folder FOLDERNAME.
step 3: Setup new application in IISMANAGER