title: How can I save the state of a component after navigating to another component in Angular 8
body: <p>I have 2 components: HomeComponent and CityComponent. They do not have any relationship.
  After navigating back to the HomeComponent, the state of the CityComponent is lost when I navigate to it again. How can I save the state? Any ideas?</p>