Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Do sit down for a while and consider if maintaining the entire state is at all a good idea ? The key motivations for having url-based state management is being able to support browser based navigation buttons and being able to bookmark a page. In a visualization app, your data would probably change every moment. This is not something you want to persist in your app-url. Do you really want that when a user bookmarks your app and comes back to it three days later - he sees the visualization for three days old data ? For your scenario, assuming I have not misunderstood your requirements, I would recommend to keep the data state in your model itself. </p> <p>Also regarding synchronization of views with model data, Yes you can code all the binding logic on your own. In that case your View class will take care of setting up the bindings on the first render. And upon subsequent calls to render, which can be invoked in response to any change event in the model, will refresh the DOM/canvas where the visualization is present.</p> <p>Probably you should be look forward to a plugin for data-synchronization that takes care of much of boilerplate for you. <a href="https://github.com/documentcloud/backbone/wiki/Extensions,-Plugins,-Resources" rel="nofollow">This page</a> lists some of the data-binding extensions available. <a href="http://lorefnon.github.com/Orchestrator/" rel="nofollow">Orchestrator</a> is another solution that I have been working on, which might be helpful in this regard.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload