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

Using CP inside hash's

$
0
0

@celo wrote:

I would like to use a computed property inside a hash, like:

export default Ember.Controller.extend({
  computeds: {
    hiw: Ember.computed('model.hiw', function() {
      return {
        name: this.get('model.hiw.name')
      };
    })
  }
});

But i can't. Its throwing an error:

this.get is not a function

I understand the scope issues.. but still, Ember should work with that..

Thanks.

Posts: 5

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 4829

Trending Articles