Tuesday, February 14, 2012

Backbone.js: Getting The Model For A Clicked Element | ThoughtStream.new :derick_bailey

Backbone.js: Getting The Model For A Clicked Element | ThoughtStream.new :derick_bailey: "The usual source of this question is that the developer has decided to use a single View object and template to render the entire list of Backbone Models. There’s nothing necessarily wrong with this approach. It has it’s advantages but it also presents a set of challenges and limitations. There is another way of approaching this which eliminates some of those limitations, but also has it’s own challenges: rendering one View object per Model. Instead of trying to choose one or the other all the time, it’s best to understand each of these approaches and be able to recognize the scenarios where each fits best."

'via Blog this'