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

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [16 בפברואר,‏ 2020,‏ 9:02pm UTC](https://meta.discourse.org/t/accessing-variables-in-a-connector/141747/5 "2020-02-16T21:02:29Z")

</div>

> [@merefield](#):
>
> So this is setting up a computed property called ‘fullName’ which is updated whenever ‘firstName’ or ‘lastName’ change. It becomes the value of the return.

Thanks for your patience!

I think I get that, what I don’t understand is how I can make values that I can access in my template.

`assets/javascript/discourse/components/user-private-messages.js.es6`:

```javascript
import discourseComputed from "discourse-common/utils/decorators";
import User from "discourse/controllers/user";

export default Ember.Component.extend(User, {
    classNames: ["restrict-pms"],
    myFunThing: "this is text in my fun thing",
    @discourseComputed("myvalue")
    someThing(myvalue) {
        return true;
    }
});

Template.registerHelper("log", function(something){
    console.log(something);
});

```

I think what I’m asking, which might not make sense, is what can I put in `assets/javascripts/discoures/templates/connectors/user-profile-controls/add-link-to-subscription.hbs` to be able to access `myFunThing` or `myvalue`?

---

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