# 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:** 2

<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 نوفمبر 2016، 3:39م UTC](https://meta.discourse.org/t/how-to-access-current-post-tags-using-ember-and-javascript/53354/2 "2016-11-25T15:39:39Z")

</div>

What you probably want to do is extend the Composer controller and add an Ember observer on the model’s `reply` field. When it changes, you can perform your ajax request, then set the tags using `this.set('model.tags', 'new value')`

For a plugin to do this, you’ll need to create an initializer that looks up the composer controller and runs extend on it.

---

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