Matthew Rosenberg
Matthew Rosenberg

Reputation: 21

Ember Computed on Array Object

Is it currently possible to use Ember.computed properties on objects properties in an array.

goalOneActive: Ember.computed.notEmpty('goals.[0].name')

Upvotes: 1

Views: 274

Answers (1)

Matthew Rosenberg
Matthew Rosenberg

Reputation: 21

The correct syntax is

Ember.computed.notEmpty('goals.0.name')

Upvotes: 1

Related Questions