EmberJS: Unable to observe @ each.property.another_property
There are cases in my EmberJS app where I want to observe something like "@ each.score.votes" to calculate the total votes or to return a sorted list, etc.
'@ each.score' is another Ember object.
However, any observer (or computed property) trying to observe "@ each.property.another_property" will fail at all. See http://jsfiddle.net/jqTRu/2/
Click Change Votes to change votes, but total_votes is not being recalculated. However, by adding a person, it works.
Is this a bug, or is there a smarter way to achieve what I intend? Thank.
EDIT : Peter pointed out that this is a bug. Christopher fixes things up (as you can see here http://jsfiddle.net/kazim/jqTRu/3/ ).
+3
source to share