我有一个Angular 5应用程序。 假设某条路线已加载,例如 http://localhost:3000/ui/customers/9/billing
如果我在浏览器中刷新页面,它将自动转到 http://localhost:3000/ui/customers/9/billing组件;有什么方法可以使其加载http://localhost:3000/ui/customers路由(组件)?
我尝试使用HashLocationStrategy,但无法正常工作。
问题here是相同的,但我不理解所提供的解决方案。