asp.net Web应用程序中

时间:2018-01-26 16:20:17

标签: c# asp.net angular routing

由于我无法使用asp.net core web application,因此我尝试重新提供最新Angular提供的Visual Studio 2017模板。

enter image description here

我设法让几乎所有内容都以同样的方式工作,但我不知道要替换routes.MapSpaFallbackRoute的内容,因为我在google上找不到任何内容。它负责所有路由。没有它,路由只能部分工作 - 网址会发生变化,但如果我在任何路由上刷新浏览器,它就会失败并显示错误Server Error in '/' Application. The resource cannot be found.我是否必须盲目地尝试从Microsoft复制大量代码库可以使它工作还是有更好的方法来解决这个问题?

0 个答案:

没有答案