# How to access current post tags using Ember and JavaScript?

**URL:** <https://meta.discourse.org/t/how-to-access-current-post-tags-using-ember-and-javascript/53354>\
**Category:** Development\
**Created:** [25 نوفمبر 2016، 4:06ص UTC](https://meta.discourse.org/t/how-to-access-current-post-tags-using-ember-and-javascript/53354 "2016-11-25T04:06:55Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Jay\_Crossler](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jay_crossler/32/121395_2.png) [@Jay\_Crossler](https://meta.discourse.org/u/Jay_Crossler)\
**Post date:** [25 نوفمبر 2016، 7:26م UTC](https://meta.discourse.org/t/how-to-access-current-post-tags-using-ember-and-javascript/53354/3 "2016-11-25T19:26:49Z")

</div>

Thanks so much for the reply.

> [@eviltrout](#):
>
> For a plugin to do this, you’ll need to create an initializer that looks up the composer controller and runs extend on it.

I tried creating a file in my plugin: plugins/myplugin/assets/javascripts/discourse/controllers/composer.js.es6

With export `default Ember.Controller.extend({...})` but this doesn’t seem to get loaded into the asset pipeline. All my other plugin code is loading fine.

Is this the best way to extend the controller? Or is there another way to lookup the post controller so I have a pointer to it?

Thanks again.

---

_[View the full topic](https://meta.discourse.org/t/how-to-access-current-post-tags-using-ember-and-javascript/53354)._
