lundi 10 août 2015

What's the equivalent of Angular's directive link function in an emberjs component?

In Angular when you create a directive, which is analogous to an Ember component, there's something called the link function where you do all your DOM transformations on the element after it is rendered.

What is the equivalent of that function in Ember?

It doesn't seem to be the didInsertElement event because Ember gave a console warning that doing DOM transformation there hurts performance. Is there another event/function that is the idiomatic place in manipulate the component with javascript?




Aucun commentaire:

Enregistrer un commentaire