DEV Community

Discussion on: How to Navigate to Previous Page in Angular

n_mehlhorn profile image
Nils Mehlhorn Author

hey there, that's definitely not a silly question!

Angular will destroy routed components once you navigate away from them by default. So, it won't remember the state of a dropdown. You'll either have to maintain this state outside of the component (in a service) or implement a RouteReuseStrategy