Tag Archives: Binding

Re-Learning Backbone.js – Collections

Backbone.js collections are used to store and manage a group of similar or related objects. If all we wanted to do was store related objects we could use a JavaScript array, but Backbone.js Collection provides an infrastructure that allows us … Continue reading

Posted in Backbone.js, JavaScript, Uncategorized | Tagged , , , | Leave a comment

Re-Learning Backbone.js – View Events

It is common for Backbone.js views to include elements that the user can interact with. For example, the user can enter text in a text box, hover over a div, or click a button. These types of interaction can trigger … Continue reading

Posted in Backbone.js, JavaScript, Tutorial | Tagged , , | 2 Comments

Re-Learning Backbone.js – Binding Models to Views

In the previous post we learned about Model Binding in isolation. There are many places where model binding can provide benefit. Where we see model binding the most is in relation to using views. Usually we want the view to … Continue reading

Posted in Backbone.js, JavaScript, Tutorial | Tagged , , , | 4 Comments

Re-Learning Backbone.js – Model Binding Events

Usually a view tracks a model, and when the data in the model changes the view is updated to represent the changes. In the previous two blog posts we learned about Bakbone.js Views, but our views did not track models … Continue reading

Posted in Backbone.js, JavaScript, Tutorial | Tagged , | 3 Comments