Created
March 7, 2012 21:25
-
-
Save codeschool-courses/1996339 to your computer and use it in GitHub Desktop.
Revisions
-
codeschool-courses revised this gist
Mar 7, 2012 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,9 @@ 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}); -
codeschool-courses revised this gist
Mar 7, 2012 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ var Appointment = Backbone.Model.extend({}); var appointment = new Appointment(); appointment.set('title', 'My knee hurts'); var AppointmentView = Backbone.View.extend({}); var appointmentView = new AppointmentView({model: appointment}); -
codeschool-courses revised this gist
Mar 7, 2012 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ var Appointment = Backbone.Model.extend({}); var appointment = new Appointment(); appointment.set('title', 'My knee hurts'); var appointmentView = new AppointmentView({model: appointment}); -
codeschool-courses created this gist
Mar 7, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ var Appointment = Backbone.Model.extend({}); var appointment = new Appointment(); appointment.set('title', 'My knee hurts');