Top JavaScript Frameworks july 2014 | Page 7

Backbone’s diminutive size is typically its biggest selling point, since it only depends on one JavaScript library instead of several. Backbone is extremely lightweight, which means it’s good for building fast and responsive applications. How to start with Backbone.js : Backbone.js has hard dependency on underscore.js and a soft dependency on jQuery. It’s made up of the following modules:  Views  Events  Models  Collections  Routers What is a view? Backbone views are used to reflect what your applications’ data models look like. They are also used to listen to events and react accordingly. What is a model? Models are the heart of any JavaScript application. It contains the interactive data as well as a large part of the logic surrounding it: conversions, validations, computed properties, and access control. What is a router? Routers are used for routing your applications URL’s when using hash tags(#). Defined routers should always contain at least one route and a function to map the particular route to. What is a collection? Backbone collections are simply an ordered set of models. It can be used in situations such as : Model: Student, Collection: ClassStudents Model: Todo Item, Collection: Todo List Model: Animal, Collection: Zoo Documentation: Here is the documentation link:http://backbonejs.org