@model = new Client()
new_object = new Object()
new_object.site_id = ""
new_object.UserName = ""
etc..
@model.set(
Header1: new_object,
Header2: somethingelse
)
@model.save()
How can i access my deeply nested models/objects? Trying the below does not work.
this.get('obj1').get('childObject').propertyName
Update:
I saw this article earlier [backbone.js get and set nested object attribute, but it was not clear on how he is accessing the childObject.
{ Obj1 :{
Obj2: {
//List of properties
}
}
}
When i set this to my Model class, how am i going to fetch the properties of Obj2.