javascript - add content to model on createRecord() -
i got ember model looks this:
app.collection = ds.model.extend({ types: ds.hasmany('app.type') });
it's obligated have 4 types in collection.
i want make sure everytime createrecord() get's called, model creates 4 new types well.
how can this?
thanx!
Comments
Post a Comment