--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/O_nDk8ZPCgYJ.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.
So, when user clicks back button, the filter can be re-build.
Both ways are very simple to implement (router fires change events).
#2 has one drawback though:
1) user opens a page, type something in a filter,
2) angular binds it to a filed in some service object,
3) user navigates somewhere else,
4) user reloads a page,
5) user goes back and there is no filter value.
That happens because reloading a page === restarting application.
So, you have to store your filter in something which survives page
reloads. You can also use local storage when browser supports it.
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/angular/-/9nmcCBTaYuoJ.