I have an Angular 2 application created with Angular CLI. This has to call a .NET 4.6 Web API. The route setup of this is driving me nuts.
For Angular, the default folde
You need first disable web api routing for angular files, add this to web.config, inside :
And then, add to your index.html.
UPD: Rewrite access to index.html
You can add another rewrite rule to override access to your /dist/ folder:
/dist/