Prevent break routing issue on error in Angular 2

倖福魔咒の 提交于 2019-12-12 01:22:17

问题


As I notice that when any error occurs in Angular 2 app, It breaks routing also. Is there any way to handle this and prevent break routing issue?


回答1:


No, almost any not handled error will break Angular app, not only router. You must handle/catch/prevent all errors.



来源:https://stackoverflow.com/questions/41873776/prevent-break-routing-issue-on-error-in-angular-2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!