thomasdavis/backbonetutorials

Uncaught ReferenceError: users not defined

EnergeticPixels opened this issue · 1 comments

I have been following along in the tutorial, but have an issue when you render real data at the 28minute mark of the tutorial - first time real data. Up to this point everything works. I know if I remove the underscore each function, the template renders with the headings. But I don't know where the issue is. I have uploaded my html page up to this point to my github account.

Any help would greatly be appreciated. Backbone and underscore n00b here.
Tony

Try:
var template = _.template($('#user-list-template').html())({users: users.models});

Instead of:
var template = _.template($('#user-list-template').html(), {users: users.models});