2
I have a screen where some functionality is done via ajax on the page, so the user can make filters, etc;
By checking the result he wants, he can click on a link that will redirect him to a new page, but if he clicks on the back of the browser he will return to the previous page and will lose the filters he made.
I need to store the variable vm
($scope-this
) so that when I return I take this variable and seven again in the variable vm
, but it’s not working because I store it in a Hidden.
Is there anything else I can try?
Have you thought about using Localstorage? Angular has a library for this.
– Wallace Maxters
Or if you use these filter arguments directly in the URL you can also keep the filter by turning the page
– celsomtrindade