In Backbone.js
, we can bind a model to a view out of the box, but it is not easy to make binding in reverse direction without the need to parse values of HTML elements.
In this recipe, we will speak about the Backbone.stickit
extension, which allows developers to implement bidirectional binding of the model properties and view elements in a simple and native Backbone.js
way.
Among many similar extensions, Backbone.stickit
stands out by its perfect documentation, simplicity, and the great advantage that it gives to application developers. It was written in New York Times not so long time ago, and its popularity is being growing day-by-day. It is definitely one of the coolest extensions for Backbone.js
.
In this recipe, we are going to build a simple application that has a couple of views bound to the same model, so if a user makes changes in the element of the first view, the second view is updated automatically. The user interface of our application...