# @this at \`property\`

**URL:** <https://discuss.emberjs.com/t/this-at-property/5992>\
**Category:** Uncategorized\
**Created:** [July 30, 2014, 10:52am UTC](https://discuss.emberjs.com/t/this-at-property/5992 "2014-07-30T10:52:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gagoman](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@gagoman](https://discuss.emberjs.com/u/gagoman)\
**Post date:** [July 30, 2014, 10:52am UTC](https://discuss.emberjs.com/t/this-at-property/5992/1 "2014-07-30T10:52:08Z")

</div>

Good day everyone.

I know that I can use `@this` to access `itemController`’s property, e.g.:

```
foos: Em.computed.mapBy('@this', 'foo')

```

How can I access `itemController`’s property in the next example?

```
foos: function() {}.property('@this.foo') // doesn't work
foos: function() {}.property('@this.@each.foo') // doesn't work too

```

Thanks.

---

<div class="post-metadata">

**Author:** ![atsjj](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/atsjj/32/14817_2.png) [@atsjj](https://discuss.emberjs.com/u/atsjj)\
**Post date:** [August 7, 2014, 12:28am UTC](https://discuss.emberjs.com/t/this-at-property/5992/2 "2014-08-07T00:28:20Z")

</div>

Assuming you’re working with an Array Controller, change the last line of your example code from:

```auto
foos: function() {}.property('@this.@each.foo')

```

to:

```auto
foos: function() {}.property('content.@each.foo')

```

---

<div class="post-metadata">

**Author:** ![jasonmit](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/jasonmit/32/182_2.png) [@jasonmit](https://discuss.emberjs.com/u/jasonmit)\
**Post date:** [August 9, 2014, 9:14am UTC](https://discuss.emberjs.com/t/this-at-property/5992/3 "2014-08-09T09:14:39Z")

</div>

> [@atsjj](#):
>
> foos: function() {}.property(‘content.@each.foo’)

You would be enumerating over the array controllers model’s here which he doesn’t want to do, he/she wants to enumerate over the item controllers.

```js
foos: function() {}.property('@each.foo')

```

Example: [Ember Latest - JSFiddle - Code Playground](http://jsfiddle.net/NQKvy/1235/)

---

<div class="post-metadata">

**Author:** ![gagoman](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@gagoman](https://discuss.emberjs.com/u/gagoman)\
**Post date:** [August 9, 2014, 9:31am UTC](https://discuss.emberjs.com/t/this-at-property/5992/4 "2014-08-09T09:31:35Z")

</div>

Cool, thanks.

I’ve tried `@each.foo` on Ember `1.5`, but it didn’t work, that’s why I’ve created this topic.

---

<div class="post-metadata">

**Author:** ![atsjj](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/atsjj/32/14817_2.png) [@atsjj](https://discuss.emberjs.com/u/atsjj)\
**Post date:** [August 11, 2014, 7:42pm UTC](https://discuss.emberjs.com/t/this-at-property/5992/5 "2014-08-11T19:42:39Z")

</div>

Ah, good catch; totally missed that.
