Angular2 Routing - keeping state of component when route changes [duplicate]
问题 This question already has answers here : Angular2 router 2.0.0 not reloading components when same url loaded with different parameters? (3 answers) Closed 2 years ago . I have an application, with views behind routes, I need to be able to continue from the point when the route changed, but after going back, the component is in its initial state. Is there any way how to keep the state of a component? 回答1: update 2 That's now fixed (Angular 2.3) for the new router by https://github.com/angular