我一遍又一遍地搜索,但也许我的搜索词不正确,因为没有任何结果。我想根据 HTTP 请求的结果动态显示我的 404 组件。
我意识到我可以通过将用户重定向到我的 404 页面来做到这一点,但是有什么方法可以在不更改 URL 的情况下呈现组件?
就像是 /people/<nonexistent id>
/people/<nonexistent id>
谢谢!
angular-router angular7
angular-router ×1
angular7 ×1