With this post, I learned that I can use find
in the console. But I'm having some problems using this to look up the data in my litte jsbin Ember.js with Ember Data and LSAdapter App here.
App.container.lookup('store:main').find('org').toArray()
Why does it show an empty array???Thank you so much for helping out
It's because find returns promises now
App.__container__.lookup('store:main').find('org').then(function(stuff){console.log(stuff.toArray())});
You can see that find is a promise when you do
> App.__container__.lookup('store:main').find('org').toString();
"<DS.PromiseArray:ember355>"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With