Skip to main content
100%

Minimal example of data handling in Backbone.js

✓ Published0🌍 Public
Aamundo
Last edited Nov 18, 2010
Created on Dec 18, 2011

This example demonstrates basic Backbone.js data binding and view updates using inline HTML input fields. It shows how models, collections, and views interact when editing text labels or adding new items, with a log panel displaying each sync operation. The code uses Backbone.Model, Backbone.Collection, Backbone.View, and Backbone.sync, along with jQuery for DOM manipulation and underscore.js templates for rendering. The fake sync method simulates server persistence by assigning temporary client IDs to newly created models.

AI-generated description

Similar vizzes