Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View state persitence #27

Open
plalx opened this issue Dec 19, 2013 · 1 comment
Open

View state persitence #27

plalx opened this issue Dec 19, 2013 · 1 comment

Comments

@plalx
Copy link
Contributor

plalx commented Dec 19, 2013

As it is right now, when we navigate from a route to another, controllers and views are destroyed. That's having a negative impact on user experience since when you go back to search results, the state is not fully restored (e.g. scroll position and category expand states). Perhaps we could drop the ng-view directive in favor of a simple ng-show directive?

This would probably allow us to drop the shared itemSearchModel service. Another option would be to store the whole view state in a shared service so that it can be fully restored, but that seems overcomplicated.

@daneroo Any thoughts?

@daneroo
Copy link
Member

daneroo commented Dec 28, 2013

Je n'ai pas suffisament utiliser le routage pour suggerer comment s'en servir simplement, mais je pense que la fonctionalite d'un ng-show ferait l'affaire amplement.

On pourrait re-visiter l'idee d'un route plus stateful, incluant le searchTerm plus tard, surtout si on commencait a faire du tracking des termes de recherche utilises, on si on ajoutait une fonctionalite de sharing (qui inclurait peut-etre un search result...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants