Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>That's right. The different parts of Meteor like <code>Meteor.Collection</code> (the Mongo database API that also works on the client) and <code>Template</code> (the Handlebars style templates that automatically redraw when data changes) work together. So any time one user makes a change, all the other tabs that are allow access to that data will automatically redraw. If you're using them, then you don't need a separate library like backbone on the client.</p> <p>Backbone is built for an earlier style of application, where you have separate client and server code written with different APIs. In that model, the server side exposes a REST API and backbone's job is to provide some structure on the client for how to query that API and draw the screen based on the data that comes back. But you still have to write all the data synchronization and model validation code by hand before you have a realtime app, and you have to do it twice: once on the client and once on the server.</p> <p>There's one exception: many of us do use backbone's router in our Meteor applications. The code below is from the <a href="http://www.meteor.com/examples/todos">Todo List example</a>.</p> <pre><code>////////// Tracking selected list in URL ////////// var TodosRouter = Backbone.Router.extend({ routes: { ":list_id": "main" }, main: function (list_id) { Session.set("list_id", list_id); Session.set("tag_filter", null); }, setList: function (list_id) { this.navigate(list_id, true); } }); Router = new TodosRouter; Meteor.startup(function () { Backbone.history.start({pushState: true}); }); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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