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
Post a Comment