Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

Ember.get with nested properties: best practices

$
0
0

@ramen07 wrote:

I just upgraded one of my applications using the instructions found here. 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.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles