Want to prevent Component recreation while routing in Angular 2
Currently components are reused only when only route parameters change while staying on the same route. If the route is changed, event when the new route adds the same component, the component is recreated. The preferred workaround is to keep the model in a shared service that stays alive during route changes and use the … Read more