# Controller property not recognized

**URL:** <https://discuss.emberjs.com/t/controller-property-not-recognized/11328>\
**Category:** Uncategorized\
**Created:** [August 7, 2016, 2:32pm UTC](https://discuss.emberjs.com/t/controller-property-not-recognized/11328 "2016-08-07T14:32:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NEstryk](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@NEstryk](https://discuss.emberjs.com/u/NEstryk)\
**Post date:** [August 7, 2016, 2:32pm UTC](https://discuss.emberjs.com/t/controller-property-not-recognized/11328/1 "2016-08-07T14:32:16Z")

</div>

in the controller defined statements property : export default Ember.Controller.extend({ … statements : , … }), I try to get this property in function but the property not recognized : let scatterController = Ember.inject.controller(‘sqlserver.pi.scatter-chart-analyitics’); // my controller

function getStatments() { scatterController.statements ; }

---

<div class="post-metadata">

**Author:** ![mattbearman](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/mattbearman/32/12512_2.png) [@mattbearman](https://discuss.emberjs.com/u/mattbearman)\
**Post date:** [August 9, 2016, 8:57am UTC](https://discuss.emberjs.com/t/controller-property-not-recognized/11328/2 "2016-08-09T08:57:32Z")

</div>

Try this:

```
function getStatments() {
  scatterController.get('statements');
}

```

You generally need to use `.get('$property_name')` when accessing properties in Ember objects.

---

<div class="post-metadata">

**Author:** ![NEstryk](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@NEstryk](https://discuss.emberjs.com/u/NEstryk)\
**Post date:** [August 9, 2016, 10:36am UTC](https://discuss.emberjs.com/t/controller-property-not-recognized/11328/3 "2016-08-09T10:36:51Z")

</div>

thanks, I try it. but it’s not help

---

<div class="post-metadata">

**Author:** ![mjsadiq](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/mjsadiq/32/12513_2.png) [@mjsadiq](https://discuss.emberjs.com/u/mjsadiq)\
**Post date:** [August 9, 2016, 1:52pm UTC](https://discuss.emberjs.com/t/controller-property-not-recognized/11328/4 "2016-08-09T13:52:10Z")

</div>

If I am not wrong , Ember.inject.controller doesnt returns you the controller itself , It injects the requested controller in the required controller.

For Eg:

```
scatterController : Ember.inject.controller('sqlserver.pi.scatter-chart-analyitics'),
getStatments : function(){
 return this.get('scatterController.statements');
}

```
