Reputation: 6167
I am trying to create a "tabbed details view" for a given entity and I need it to be deep linked with the url/hash. The hard part is I want the data to be lazy-loaded. In a perfect world, I would have a parent route at /Index.html#details/<objId>
that holds all the lazy loaded data for each of its sub routes. When a user goes to /Index.html#details/<objId>/tab1
or /Index.html#details/<objId>/tab2
it can look at an object on the parent model for tab1Data
or tab2Data
to see if it needs to fetch data. Is there a way to do this with crossroads or maybe a better way to implement something like this?
Upvotes: 2
Views: 170