I have the following code
var object = Ember.Object.create({ foo: Ember.computed.alias('bar'), bar: function(){ console.log('bar'); }});object.foo();
It raises
TypeError: object is not a function
Is there an idiomatic way to achieve this?
Aucun commentaire:
Enregistrer un commentaire