# Accessing variables in a connector

**URL:** <https://meta.discourse.org/t/accessing-variables-in-a-connector/141747>\
**Category:** Development\
**Created:** [16 בפברואר,‏ 2020,‏ 4:40pm UTC](https://meta.discourse.org/t/accessing-variables-in-a-connector/141747 "2020-02-16T16:40:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [16 בפברואר,‏ 2020,‏ 6:08pm UTC](https://meta.discourse.org/t/accessing-variables-in-a-connector/141747/2 "2020-02-16T18:08:25Z")

</div>

Hi Jay,

I’ve heard people state EmberJS is “a language in itself”!

What you need is a Computed Property:

> **[Dynamic updating - Computed Properties - The Object Model - Ember Guides](https://guides.emberjs.com/v3.12.0/object-model/computed-properties/#toc_dynamic-updating)**
>
> In a nutshell, computed properties let you declare functions as properties. You create one by defining a computed property as a function, which Ember will automatically call when you ask for the property. You can then use it the same way you would...

Though the Discourse source syntax is a bit different as well as the imports, it’s best to look for an example. Here’s a bit of my code:

[https://github.com/paviliondev/discourse-zspace/blob/cc8893c14a9b1c5d4f6552f8f6b12ea9ac7ac643/assets/javascripts/discourse/components/activity-file-edit.js.es6#L10](https://github.com/paviliondev/discourse-zspace/blob/cc8893c14a9b1c5d4f6552f8f6b12ea9ac7ac643/assets/javascripts/discourse/components/activity-file-edit.js.es6#L10)

---

_[View the full topic](https://meta.discourse.org/t/accessing-variables-in-a-connector/141747)._
