# Using a Discourse component in a plugin

**URL:** <https://meta.discourse.org/t/using-a-discourse-component-in-a-plugin/56155>\
**Category:** Development\
**Created:** [22 يناير 2017، 7:33ص UTC](https://meta.discourse.org/t/using-a-discourse-component-in-a-plugin/56155 "2017-01-22T07:33:38Z")\
**Posts on this page:** 1\
**Showing post:** 15

<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:** [25 يناير 2017، 8:23م UTC](https://meta.discourse.org/t/using-a-discourse-component-in-a-plugin/56155/15 "2017-01-25T20:23:23Z")

</div>

Ah, the static controller doesn’t have the `appRouteAction` helper that the `application` controller does. This is a bit of a complicated situation I promise, because it involves sending an action to something that is present on every page of the site 😛

Your best bet would be to create a new action in the static controller that simply calls `this.send('showCreateAccount')` and then bind _that_ to the plugin outlet.

---

_[View the full topic](https://meta.discourse.org/t/using-a-discourse-component-in-a-plugin/56155)._
