Backbone Model Error Displayed In Console
I'm learning Developing Backbone.js Applications by Addy Osmani and I am stuck. Here is my view: var TodoView = Backbone.View.extend({ tagName: 'li', className: 'todo_l
Solution 1:
You are not passing any model to your view, hence the this.model
is undefined
Try
var myModel = // define your modelvar todoView = new TodoView({
model: myModel
});
Post a Comment for "Backbone Model Error Displayed In Console"