Since I cannot use asp.net core web application
, I am trying to recreate the template for Angular
that is provided with the latest Visual Studio 2017
.
I managed to make almost everything working the same way but I do not know what to replace the routes.MapSpaFallbackRoute
with as I cannot find anything on google. It is responsible for all the routing. Without it the routing works only partially - the url changes, but if I refresh a browser while it is on any route, it fails with an error Server Error in '/' Application. The resource cannot be found.
Do I have to blindly try to copy huge chunks of code from the Microsoft libraries to make it work or are there better ways to solve this problem?