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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -