ember.js - setting values of nested objects -


i have simple ember.object has ember.object member

topobject = ember.object.extend({     subobject: ember.object.extend({         prop: ''     }) }); 

the question is, can ember set values of nested object if create object loaded data this:

topobject.create({     subobject: { prop: 'value'} }); 

if understanding correct need object property of object, use ember.object.create() subobject create instance. can go out way topobject.create({suboject: {prop: 'value'}});

here little fiddling on objects


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -