Skip to content

Instantly share code, notes, and snippets.

@aissatech
Forked from codeschool-courses/challenge-1-7.js
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save aissatech/c3cc103bf46d25f84a5c to your computer and use it in GitHub Desktop.

Select an option

Save aissatech/c3cc103bf46d25f84a5c to your computer and use it in GitHub Desktop.
var Appointment = Backbone.Model.extend({});
var appointment = new Appointment();
appointment.set('title', 'My knee hurts');
var AppointmentView = Backbone.View.extend({
render: function(){
$(this.el).html('<li>' + this.model.get('title') + '</li>');
}
});
var appointmentView = new AppointmentView({model: appointment});
@aissatech
Copy link
Author

BackboneJS Codeschool's course

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment