vendredi 13 février 2015

How to get an object inside an array that is inside an object in ember?

How would I 'get' the value of a property that is declared inside another property that is inside an array that is inside an object...


Here is an example:



App.THING = {
id: 1,
year: 2008,
property: {
id:1,
location:"somewhere",
assessments: [
{
assessment:{
otherId: 1,
value: 10,
}
}
]
}
};


I want to get value. How would I get that value in the controller?


If you need more info, please let me know.





Aucun commentaire:

Enregistrer un commentaire