# Should Ember Components Load Data?

**URL:** <https://discuss.emberjs.com/t/should-ember-components-load-data/4218>\
**Category:** Design\
**Created:** [February 20, 2014, 1:31am UTC](https://discuss.emberjs.com/t/should-ember-components-load-data/4218 "2014-02-20T01:31:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Spencer\_Price](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/spencer_price/32/14878_2.png) [@Spencer\_Price](https://discuss.emberjs.com/u/Spencer_Price)\
**Post date:** [February 20, 2014, 2:27am UTC](https://discuss.emberjs.com/t/should-ember-components-load-data/4218/2 "2014-02-20T02:27:58Z")

</div>

The ember team does give us some guidance from Ember Data’s [Transition.md](https://github.com/emberjs/data/blob/master/TRANSITION.md) document, it states:

> In general, looking up models directly in a component is an anti-pattern, and you should prefer to pass in any model you need in the template that included the component.

That being said, I think it would really depend upon your use case (they do show you how to inject the store into Components anyway). I can imagine some scenarios where the component retrieving data might make the most sense…

What are you trying to do exactly? That might be the best way to explore wether it may or may not be a good option.

---

_[View the full topic](https://discuss.emberjs.com/t/should-ember-components-load-data/4218)._
