Angular2 ComponentRouter阻止自动组件重用

前端之家收集整理的这篇文章主要介绍了Angular2 ComponentRouter阻止自动组件重用前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
参见英文答案 > Angular2 Routing – keeping state of component when route changes                                     2个
文件 https://angular.io/docs/ts/latest/guide/router.html指出

… By default,the router reuses a component instance when it re-navigates to the same component type without visiting a different component first. The parameters can change between each re-use…

但没有提示如何更改此默认行为.

是否可以防止重复使用?

解决方法

猜你在找的Angularjs相关文章