I have simple app with one component that expects certain parameters from url. there is only one route in the application:
const appRoutes: Routes =
Modify angular routing by adding # after baseurl:
http://localhost:4200/yourApp#/subPageRoute
In app-routing.module.ts on line with RouterModule.forRoot add ", { useHash: true }"
RouterModule.forRoot(routes, { useHash: true })
This way IIS thinks everything after # is some id on page and ignores it.