![]() ![]() Moreover, you can perform routing to update the browser URL within Backbone applications. So, we can say that Backbone.js helps to keep the business logic separate from the user interface, more commonly called as the separation of concerns. Backbone views are used to reflect the applications’ data models as well as to listen to events and react accordingly. Though, it remains separate from the view object. Backbone allows developers to define the HTML and associate with a view, either directly or through some templating engine. Moreover, you can create a view for each model or have a view that renders thousands of models at once. Thus, whenever a user interface (UI) action causes an attribute of a model to change, the model triggers a “change” event and the views simply update themselves. These models can be created, validated, deleted and saved to the server. Backbone.js Featuresīackbone allows creating models for organizing our data structures in an application. Besides browser, Backbone.js is useful for connecting with multiple clients through mobile devices, tablets, Google Goggles and electronic fridges. It provides models with key-value binding and custom events as well as collections (group of models) with a rich API of enumerable functions.īackbone.js exposes data through a RESTful API, which means server communication through a RESTful API can allow handling multiple clients. Backbone.js framework is quite useful for data structuring while building a web application using JavaScript. There are a lot of popular Backbone applications in use, such as BitTorrent, Foursquare, DocumentCloud and Pinterest.Īlso See: 18 Resources on ES6 for JavaScript Developers Why Backbone.js is important for developers?īackbone.js is a JavaScript library which allows synchronizing different parts of web applications (for instance, multiple clients and the server). Controllers facilitate the interaction between models and views and update them according to the user’s input.īackbone is widely used for developing single-page web applications. ![]() Models represent the business object while views are visible to the user for data consumption. But, it does not enforce the use of controllers and it can also be used as a model-view-view-model (MVVM) framework. What is Backbone.js?īackbone.js is a minimalist JavaScript framework, which is based on the model-view-controller (MVC) application design architecture. Today, we will discuss about Backbone.js and try to explore some online resources for learning Backbone technology. You can refer to this post for more information on various frameworks for front-end JavaScript development. Besides, there are a few more, such as Ember.js, min.js and Spine. We already learnt about the MEAN stack technology in an earlier post. These days, several JavaScript frameworks are widely used for web development.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |