Base solution for your next web application
Open Closed

Persist filter criteria on list page after navigating into details page and navigating back. #6183


User avatar
0
ctesene created

I'm running the aspnet core w/ angular 2 solution. I have a RAD generated entity, lets call them "students". On the students list page (auto generated code) there are multiple filters. I have a "student" detail page that we navigate to (not a modal), and when the user hits the back button to get to the student list page, all of the filter criteria is lost.

So far I see there are two options,

  1. persist the filter criteria to the query string and reload on load.
  2. use some shared state service to store the state

Anyone else have any other ideas?


1 Answer(s)
  • User Avatar
    0
    ctesene created

    FYI. I found the article below, and it worked perfectly.

    https://stackoverflow.com/questions/41280471/how-to-implement-routereusestrategy-shoulddetach-for-specific-routes-in-angular