Backbone JS

Backbone js is one of good framework. It’s light weight and give structure to web application. It consist of :

  • Model
  • View
  • Collection
  • Router
  • Templating (use UnderscoreJs and Handlebarjs)

Basic

To use backbone , it require jquery (not mandatory) and underscore js (mandatory)

View

View is used to show your data and event. Here is the example :


View Demo

You can use view with event.


View Demo

Model

Model containing the interactive data as well as a large part of the logic surrounding it: conversions, validations, computed properties, and access control.


View Demo

Model With Validate


View Demo

Collection

Model Templating With Underscore

Basic Template


View Demo

Model Template


View Demo

Collection Template


View Demo

Model Templating With HandleBars

Basic Template


View Demo

Model Template


View Demo

Collection Template


View Demo

Route


View Demo

Router With Parameter


View Demo