What is Backbone?
Backbone is a library which provides a set of features to structure you web application. Using backbone it is possible to achieve traditional MVC pattern.
Why Backbone?
- light weight fast and has a small memory footprint
- provides client side app structure
- provides RESTful JSON interface (CRUD Methods) for synchronizing date between sever
- easy for maintenance
- data binding(tying data) between DOM and object becomes simple
- offers custom events to notify the changes between UI and view
- and lot more...
When to use Backbone?
- to build single page web applications
- to build web applications with the choice of different frameworks
How to Start?
- download backbone library
- download underscore which is the only hard dependency for backbone
- download jQuery for DOM manipulation, RESTful persistence and history support
What are the components of backbone?
- Model
- View
- Collection
- Events
- Router
- Sync