# Como injetar um serviço no Discourse?

**URL:** <https://meta.discourse.org/t/how-to-inject-a-service-in-discourse/217533>\
**Category:** Development\
**Created:** [8 Fevereiro , 2022 17:00 UTC](https://meta.discourse.org/t/how-to-inject-a-service-in-discourse/217533 "2022-02-08T17:00:11Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Post date:** [8 Fevereiro , 2022 20:46 UTC](https://meta.discourse.org/t/how-to-inject-a-service-in-discourse/217533/9 "2022-02-08T20:46:34Z")

</div>

> [@JQ331](#):
>
> Consigo criar um novo appEvent em um plugin/componente de tema ao qual posso me inscrever?

Sim, você consegue. Procure por `appEvents.trigger`.

---

_[View the full topic](https://meta.discourse.org/t/how-to-inject-a-service-in-discourse/217533)._
