mardi 23 février 2016

Changing context/scope of Ember.ComputedProperty

As the title said, I wish to find a way to change the context or scope of Ember.ComputedProperty.

My use case is that I allow user to define a bindingConfig property which is used for dynamic binding. This bindingConfig can be either a string or a function or an Ember.ComputedProperty.

Because the bindingConfig is passed in separate from the Content/Model, thus I need to bind it to the content and I haven't found anyway of doing this for Ember.ComputedProperty.

http://ift.tt/21dbwtO

Many thanks, :)




Aucun commentaire:

Enregistrer un commentaire