I have a angular view with a list of items and a set of options at the top of the page to filter the items. The user can click an item to view a detail page for the item. I'm using ui-router.
When the user is on a detail and clicks their back button, it returns to the list, but with the filter options reset to default. The filters are too complex to encode in the URL, so I'm wondering: what is the best way to handle this? So far my googling seems to indicate local storage, but I didn't know if this was over-engineering it since I don't want to persist the state all the time, only for the purpose of history (if they navigate to the listing in any other way, I want the defaults). I'm still new to angular so wanted to check with SO if there was a built-in mechanism for this before I go down the rabbit hole.