[英]Angular 5 deployment to IIS server , navigation routes from dist folder not working
From what I understand, if I do an ng build and deploy the code generated in the "dist" folder, then all the typescript and routing is all ready to work?! 据我了解,如果我要构建并部署在“ dist”文件夹中生成的代码,那么所有的打字稿和路由都准备好了吗?
I deployed code in dist
folder and the home page comes up just fine 我在
dist
文件夹中部署了代码,主页显示的很好
as soon as I click on a link, I get a 404 ( IIS server) 单击链接后,我立即得到404(IIS服务器)
example of a route 路线示例
/criminal/?UserID...
{ path: 'criminal', component: CriminalComponent, pathMatch: 'full'},
You should follow this tutorial: 您应该遵循本教程:
https://blog.angularindepth.com/deploy-an-angular-application-to-iis-60a0897742e7 https://blog.angularindepth.com/deploy-an-angular-application-to-iis-60a0897742e7
At a high level: 在高层次上:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.