Angular 5-在刷新浏览器时重定向到应用程序的根目录

时间:2018-09-15 20:11:16

标签: angular

我有一个Angular 5应用程序。 假设某条路线已加载,例如 http://localhost:3000/ui/customers/9/billing

如果我在浏览器中刷新页面,它将自动转到 http://localhost:3000/ui/customers/9/billing组件;有什么方法可以使其加载http://localhost:3000/ui/customers路由(组件)?

我尝试使用HashLocationStrategy,但无法正常工作。

问题here是相同的,但我不理解所提供的解决方案。

0 个答案:

没有答案