lundi 6 juillet 2015

Make checked checkboxes stay checked after coming back to the page

I have a page of items which are loaded by angularjs with $http.get.

On that same page, there are checkboxes of categories. For example, if user presses the checkbox men, angular fetches the items belonging to the men category without reloading the page.

Also, a user can click on some item and he will get to the detail page for that item.

The problem is that, when a user checks a category checkbox, chooses some item, gets to the detail page and presses the back button in the browser, all checkboxes are unchecked and he will see all the items, not the ones he filtered out a while ago.

How can I 'remember' what checkboxes he checked?




Aucun commentaire:

Enregistrer un commentaire