# Ember.get with nested properties: best practices

**URL:** <https://discuss.emberjs.com/t/ember-get-with-nested-properties-best-practices/13785>\
**Category:** Learning Team\
**Created:** [October 19, 2017, 2:31pm UTC](https://discuss.emberjs.com/t/ember-get-with-nested-properties-best-practices/13785 "2017-10-19T14:31:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramen07](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@ramen07](https://discuss.emberjs.com/u/ramen07)\
**Post date:** [October 19, 2017, 2:31pm UTC](https://discuss.emberjs.com/t/ember-get-with-nested-properties-best-practices/13785/1 "2017-10-19T14:31:11Z")

</div>

I just upgraded one of my applications using the instructions found [here](https://emberjs.com/blog/2017/10/11/ember-2-16-released.html#toc_updating-your-application). I use the pattern

`this.get("someService.propertyHolder.someProperty")`

frequently, so I was somewhat surprised when `node_modules/.bin/eslint --fix .` converted it to

`get(get(get(this, 'someService'), 'propertyHolder'), 'someProperty')`

which honestly looks and feels like garbage. Any thoughts on best practices for nested properties? One option is to always use computed aliases for nested properties, but that also feels somewhat bad.

---

<div class="post-metadata">

**Author:** ![martletandco](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/martletandco/32/13089_2.png) [@martletandco](https://discuss.emberjs.com/u/martletandco)\
**Post date:** [October 20, 2017, 10:34am UTC](https://discuss.emberjs.com/t/ember-get-with-nested-properties-best-practices/13785/2 "2017-10-20T10:34:39Z")

</div>

`get(this, "someService.propertyHolder.someProperty")` is readable and idiomatic. There might be some good reason eslint sliced it that way but I don’t see it

---

<div class="post-metadata">

**Author:** ![haldiggs](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/haldiggs/32/9852_2.png) [@haldiggs](https://discuss.emberjs.com/u/haldiggs)\
**Post date:** [October 24, 2017, 6:05pm UTC](https://discuss.emberjs.com/t/ember-get-with-nested-properties-best-practices/13785/3 "2017-10-24T18:05:59Z")

</div>

possibly just to drive you crazy? 😆
