Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

The One With Delete Buttons

backbone.png

It might be hard for you to eye-parse this example without walking through the introductory materials on Backbone in Chapter 7 first, so I suggest you read about MVC and Backbone in the book before going through this example.

To run this example you'll need to build the application with Browserify, I've set up Grunt for that, just like in ch05e11 Browserify + Common.JS.

grunt build

Once you build it, you can see it in action just opening the HTML page. Make sure you browse through the code! I'm sure you'll find interesting comments and advice in there!

open app.html

Oh, also, if you want to make changes to the Backbone application, and rebuild them without runing grunt build every time, you could use the following command.

grunt watch

In this one, we're building upon the previous example, ch07e06 Shopping List, adding a delete button on each item in our list and introducing new concepts such as Collections and Backbone Models.

backbone-delete.png

Browse the code and check out the comments to learn more!