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

Popular posts from this blog

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -