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

getProperties Should Allow Brace Expansion Syntax

$
0
0

@Shadamedafas wrote:

Hello,

Not sure how difficult the implementation of this would be, but I found myself wanting to use the brace expansion syntax available to computed property declaration in the getProperties method.

As an example:

// Now
let thing = this.get('thing');
let { foo, bar } = thing.getProperties('foo', 'bar');

// Proposed
let { foo, bar } = this.getProperties('thing.{foo,bar}');

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4829

Trending Articles