This chapter demonstrates about the Backbone.js Tutorial which is a frame work or java script library to create a single web page application and following are the concepts covered in this chapter.
About Backbone.js
Features of Backbone.js
About Backbone.js
Description
Backbone.js is a framework or JavaScript Library used to create a single page web application Which is used to create a client side application and it runs on a web browser. Which offers MVC Framework to abstracts the data into models, DOM into Views and which can bind by using Two events.
Backbone.js is mostly used tp create a single page application by using a RESTful service for persisting data.
History
Backbone.js was released on 13th October 2010 and it was developed by Jeremy Ashkenas.
When to Use Backbone .js
Backbone.js is used to reduce the complications, for example, while creating an application which has lots of lines codes using jQuery or JavaScript which is very complicated when replacing the dom elements and showing some animations in the applications or making some requests which may become very complicated then Backbone.js provides an easy way to overcome these problems.
If the application have lots of code and user need better design then the programmer can refer the Backbone.js library which has good functionality and it provides an organized way of structure to develop the application. Backbone.js get the communication via events then a user will get a fast application and code will be very cleaner and more flexible.
Features of Backbone.js
Description
Backbone.js have the several features in which following are the most important features.
By using Backbone.js developer can develop the single page application in which front end is very easier and better ti use JavaScript function.
Backbone.js have several types of building blocks just like models, events, views, routers and collections to assemble the customer side web applications.
In Backbone.js If model changes then which automatically update the HTML application.
Backbone.js is a simple library which is used to separate the User interface and business logic.
Backbone.js is open source library which has several extensions.
backbone.js makes the code very simple and systematic and organized way. Which just act like a backbone for the project.
Backbone .js have the some dependency with jQuery and some more hard dependency with underscore.js.
By using Backbone .js Developer can develop the customer side web applications or mobile applications in a good manner and organized way.
Summary
Key Points
Backbone.js is a very light weight and simple library.
Backbone.js used to reduce the complications.
Backbone.js is mainly used to create single page web application.