Ways to save Backbone.js model data?
Basically Models have a property called attributes which are the various values a certain model may have. Backbone uses JSON objects as a simple way to populate these values using various methods that take JSON objects. Example: Donuts = Backbone.Model.extend({ defaults: { flavor: ‘Boston Cream’, // Some string price: ‘0.50’ // Dollars } }); To … Read more