Using history in angular js

Asked

Viewed 17 times

1

Is there any way to use browser history in an angular SPA application?

I am developing a client search application and I was asked that the user has the possibility to, for example, when a 5 searches have the possibility to go back to the results of the searches made previously.

  • 1

    Dude I don’t know if you have something ready for this, but you can use a database to cache Redis, Mongodb, etc. And save the last 5 queries of the last users there, then you think about how to display this history on the screen and instead of searching in your normal database you search in the cache.

  • 1

    One possibility would be to display in the UI a list of the latest queries, and allow the user to navigate between them.

  • I thought I had some library that did this, I’ll have to create it from scratch. Anyway thanks Diegoaugusto and Onosendai

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.