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

Array computed alias not working in production

$
0
0

@engwan wrote:

I have this computed property alias in my component:

firstElement: Ember.computed.alias('myArray.firstObject')

This works in development, but doesn't update in production mode.

This code though works in both development and production:

firstElement: Ember.computed('myArray.[]', function() {
  return this.get('myArray.firstObject');
}

Is the alias macro not allowed on firstObject , lastObject, etc..?

It also seems weird that in works in development but not in production mode.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles