[英]Uncaught ReferenceError: System is not defined Angular2 reload
In angular2 I configured a route with a parameter like this 在angular2中,我使用这样的参数配置了一条路线
{
path: 'house/:id',
component: SingleHouseComponent,
canActivate: [AuthGuard]
}
When I click house details link it's working fine but when I'm trying to reload this page in this link http://localhost:3001/house/76887262-185e-4721-a283-6284cab2d7d7
is says 当我单击房屋详细信息链接时,它工作正常,但是当我尝试在此链接中重新加载此页面时,
http://localhost:3001/house/76887262-185e-4721-a283-6284cab2d7d7
表示
index.html在脚本之前必须具有<base href="/">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.