# Using Ember Services in Discourse plugins

**URL:** https://meta.discourse.org/t/using-ember-services-in-discourse-plugins/51713
**Category:** Development
**Created:** [October 18, 2016, 9:42pm UTC](https://meta.discourse.org/t/using-ember-services-in-discourse-plugins/51713 "2016-10-18T21:42:47Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![JQ331](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@JQ331](https://meta.discourse.org/u/JQ331)
#### Post date: [February 6, 2022, 9:39pm UTC](https://meta.discourse.org/t/using-ember-services-in-discourse-plugins/51713/8 "2022-02-06T21:39:43Z")

</div>

HI. I’m trying to get a service to work in discourse. I originally asked the question in this topic, but then thought it made more sense to create a new topic for it:

> [@How to inject a service in discourse?](https://meta.discourse.org/t/how-to-properly-inject-a-service-in-discourse/217533):
>
> I want to use a service in a theme component I am building. If services are only available in plugins, I can build a plugin as well. Goal is to connect two different plugin outlets - press a button in one outlet, and have that button press picked up by the other outlet. How can I properly register a service in Discourse? I’ve followed the topic [here](https://meta.discourse.org/t/using-ember-services-in-discourse-plugins/51713), and the related plugin code on github, but I’m not able to get it to work. I think the missing piece is that my theme component is not recognizin…

---

_[View the full topic](https://meta.discourse.org/t/using-ember-services-in-discourse-plugins/51713)._
