In my Angular application, users can configure settings on a particular page (e.g., filters, view preferences, etc.). When the user navigates to another route and then returns to the original page, I want to restore the previously selected settings.
What is the most efficient way to persist and restore these page-specific settings, aside from using localStorage or storing data in a shared service file? Is there a more Angular-native or optimized approach for this use case?