How to calculate the sum of a property of all child models in EmberJS?

Posted by Andre Scott | Updated on

Want to calculate the sum of a property of all child models in EmberJS? This is a more elegant solution using reduce. I have never used it and this isn’t tested but i am quite confident that this should work:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers