How to save data when I navigate to another route? For example, I have routes as below. I navigate to routerA and input some data. If I navigate to routerB and then navigate back to routeA I won't see the previous data that I input.
const appRoutes: Routes = [
{ path: 'routerA', component: RouterAComponent },
{ path: 'routerB', component: RouterBComponent }
]