-
Book Overview & Buying
-
Table Of Contents
Learning Yeoman
By :
The concept behind Backbone is to provide a common set of data-structuring objects (collections and models) and user interface (routes and views) primitives that are useful when creating a single-page application.
The Backbone.js concepts are as follows:
Model: This is a layer of abstraction that provides access to network resources
Collection: This is a way to provide methods on an ordered set of models
View: This is a way to encapsulate the presentation layer into objects
Router: This is a way to support navigation by responding to hash changes
Event: This is emitted by model and collection corresponding to the state changes
In short, Backbone.js abstracts functionality, separates concerns, and decouples code. Backbone always works with just about any library and is most often used with Require.js to load scripts; the Handlebars templating library is used to compile and render model data, and the Jasmine testing framework to create unit tests to verify the...
Change the font size
Change margin width
Change background colour