How to access the length of a find() result in EmberJS?

Posted by Jennifer | Updated on

Want to access the length of a find() result in EmberJS? Basically when you do App.Model.find() it returns you an instance of RecordArray but it wont have data, in the background it queries with the database and will fetch the data, now once the data is loaded you’ll find the actual length.

You might try adding an Observer on isLoaded property as follows:


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