mercredi 29 juillet 2015

Accessing an aliased computed property from an Ember component

I am passing the value of an "Ember.computed.alias()" to a component via an attribute called "disabled". The alias itself points to a computed property.

Within the controller the alias carries the correct value returned by the computed property. However, when I try to access the "disabled" attribute from within the component like this:

this.getAttr('disabled')

the value is always "undefined".

Should I be able to pass aliases of computed properties to components?

Any help would be appreciated.

Thanks.




Aucun commentaire:

Enregistrer un commentaire