jeudi 2 avril 2015

Observe/Detect Change in Ember Component {{yield}} Block

Is there any way for a component to listen to, or observe, changes in yielded content?


I have a component which serves as an isotope.js wrapper, and would like to be able to call some necessary clean-up isotope methods (such as .isotope('layout')) in case wrapped content changes (e.g. through filtering).


I've been able to do something similar with a View by observing controller properties, but would like to keep things less coupled if possible.





Aucun commentaire:

Enregistrer un commentaire