Groups
Groups
Sign in
Groups
Groups
Create.js
Conversations
About
Send feedback
Help
Setting defaults for collection
9 views
Skip to first unread message
Michael Oostdyk
unread,
Jul 9, 2013, 10:54:17 AM
7/9/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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