我正在提交一个 ... (用“x”检查一个)
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
当前行为
Angular 2 rc2 - 多次使用后退按钮时,路由在 INTERNET EXPLORER 11 中引发异常
不仅。 组件生命周期挂钩未正确调用。 重复 (#7722)
预期/期望行为
它不应该抛出异常
问题的重现
打开官方文档提供的plunker:
1)
https://angular.io/docs/ts/latest/guide/router.html
http://plnkr.co/edit/h0o2IuoZYvXGtC1ejQBl?p=preview
2)
做一些导航
3)
按 f12(打开开发者控制台)
4)
多次使用后退按钮
这是结果:
未处理的承诺拒绝:例外:错误:0:0
原始例外:类型错误:无法获取未定义或空引用的属性“取消订阅”
原始堆栈跟踪:
类型错误:无法获取未定义或空引用的属性“取消订阅”
在 HeroListComponent.prototype.ngOnDestroy(评估代码:32:9)
在 _View_HeroListComponent_Host0.prototype.destroyInternal(函数代码:33:3)
在 AppView.prototype.destroyLocal(评估代码:11773:13)
在 DebugAppView.prototype.destroyLocal(评估代码:11935:17)
在 AppView.prototype._destroyRecurse(评估代码:11761:13)
在 AppView.prototype.destroy(评估代码:11747:13)
在 ComponentRef_.prototype.destroy(评估代码:8889:57)
在 RouterOutlet.prototype.deactivate (评估代码:47:13)
在 ActivateRoutes.prototype.deactivateOutletAndItChildren(评估代码:381:13)
在 ActivateRoutes.prototype.activateRoutes(评估代码:363:13)
错误上下文:
[对象对象] ; 区:; 任务:Promise.then; 值:例外:错误:0:0
原始例外:TypeErro
“未处理的 Promise 拒绝:”
“例外:错误:0:0
请告诉我们您的环境:
是的,在 Safari 上也一样
最有用的评论
是的,在 Safari 上也一样