# Insert a glimmer component after first post

**URL:** <https://meta.discourse.org/t/insert-a-glimmer-component-after-first-post/303282>\
**Category:** Development\
**Created:** [April 10, 2024, 6:19pm UTC](https://meta.discourse.org/t/insert-a-glimmer-component-after-first-post/303282 "2024-04-10T18:19:56Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [April 16, 2024, 4:54pm UTC](https://meta.discourse.org/t/insert-a-glimmer-component-after-first-post/303282/12 "2024-04-16T16:54:48Z")

</div>

> [@pfaffman](#):
>
> The other bit, in the unlikely event that anyone else finds this useful, is
> 
> ```plaintext
> import Service, { inject as service } from "@ember/service";
> 
> ```

Yup!

In this case, I don’t think you’ll need to import the `Service` class. That would only be needed if you were creating your own Service. You just need the `service` injection decorator.

And in the latest version of Discourse/Ember, it can be simplified even further to avoid needing the ‘inject as’ alias. Ember now make the injection decorator available directly as `service`.

```plaintext
import { service } from "@ember/service";

```

(but the old `{ inject as service }` still works, and I’m not aware of any plans to deprecate it in Ember)

EDIT: But maybe I can use decorateWidget instead of a plugin outlet. . .

---

_[View the full topic](https://meta.discourse.org/t/insert-a-glimmer-component-after-first-post/303282)._
