Setting defaults for collection

8 views
Skip to first unread message

Michael Oostdyk

unread,
Jul 9, 2013, 10:54:17 AM7/9/13
to crea...@googlegroups.com
In backbone you can set defaults for a model. 

1. Is there a way to set defaults for a collection in create.js?
2. Is there a way I can modify a collection view template for a specific model in create.js?

var TodoItem = Backbone.Model.extend({
 defaults: {
     description: 'Empty todo...',
     status: 'incomplete'
 }
});

thanks!
Reply all
Reply to author
Forward
0 new messages