Yes.  Use a service.


On Tuesday, July 21, 2015 at 10:37:53 AM UTC-5, Elangovan KS wrote:
>
> Hi,
>
> Here is my scenario.
>
> I have a search view where user enters some search criteria. On click of 
> Submit button, I route to search results URL (view) and display results. 
> Now on click of browser back button, search view display but all the user 
> entered values disappear. This is because of controller reload. Is there a 
> way we can retain values when user click browser back/forward button?
>
>  
>
> When I search in web, some suggested using service to cache values. Just 
> wanted to check any other approach available.
>
>  
>
> Note: I am using AngularUI for routing.
>
>  
>
> Thanks,
>
> Elan
>

-- 
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.

Reply via email to