# Correct way to build components

**URL:** <https://meta.discourse.org/t/correct-way-to-build-components/55407>\
**Category:** Development\
**Created:** [9 يناير 2017، 1:28م UTC](https://meta.discourse.org/t/correct-way-to-build-components/55407 "2017-01-09T13:28:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [9 يناير 2017، 4:39م UTC](https://meta.discourse.org/t/correct-way-to-build-components/55407/2 "2017-01-09T16:39:49Z")

</div>

One thing I’ve never been 100% clear in Ember is how they want you to fetch data for widgets that aren’t related to the rest of the content. I think fetching the data the way you suggest is probably fine. I think maybe using an [Ember Service](https://guides.emberjs.com/v2.10.0/applications/services/) that is injected into your component to fetch the model is probably the accepted way to do it.

---

_[View the full topic](https://meta.discourse.org/t/correct-way-to-build-components/55407)._
