ember.js - How can I look up models in the console with Ember Data 1.0.0-beta.1? -
app.user.find() this.store.find(), how there console?
you have possibility lookup through container,
app.__container__.lookup('store:main').find('user')
obviously, debugging, , maybe testing purpose. must never use in production code, because it's call global scope, bad practice in general.
or think, if install ember-extension chrome (https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi?hl=fr), show model used in current route.
Comments
Post a Comment