CHAPTER 3

image

Backbone Models and Collections

There are two main parts to the model layer of any Backbone.js application: the representation of the data (Backbone.Model) and the grouping of your data into sets (Backbone.Collections). An understanding of how each of these parts works and interacts will give you the ability to create a well-structured data layer for your Backbone applications.

image Note  Throughout this chapter, as you are using the code samples, you can simply load index.html from Chapter 1 and use the Chrome Developer Console to try these ...

Get Beginning Backbone.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.