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

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -