Model data persistence across route changes?


#1

Say I have two links at the top of my index page, to /widgets and /stuff. /widgets displays a list of widgets pulled from a remote server via the RESTAdapter. /stuff is just static content.

What I want is to click on /widgets, watch the widgets load and display, then click on /stuff, then click back to /widgets without it re-loading the widget store. I want it to just re-display what was in the store before without making a new backend query.

Ignoring issues such as “what if a widget was added in the meantime?”, how would I go about this?