I am having a page which contains some filters and search button. On search click, it gives me soem results and on clicking one of the result, it redirects to another page using service to get some of the values to another page. Now when I click browser back button, I got the previous page fresh from server instead of getting the same page with search results. How can I keep history in that scenario? Any help? Thanks.
On Thursday, 2 February 2012 03:53:36 UTC-8, Thierry Chatel wrote: > > I have a list and a filter input field, just as in the documentation : > http://docs-next.angularjs.org/api/angular.module.ng.$filter.filter > I enter some text to filter the list items, then click on one of the items > to view details page. When I go back from the details page to the list, > using the browser back button, I would like to retrieve my list page with > the same filter value. > > The browser keeps the values of the html page fields, but Angular bindings > overwrites them at loading from the controller values. > Is there an easy way to keep the value in the html input field and update > the controller property from it, rather than overwrite the html input field > by the controller property value ? > > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
