Wssup good people.
How does one load scripts after all the elements have been inserted into the DOM?
I am trying to instantiate bootstrap affix and a number of other other jquery plugins
Wssup good people.
How does one load scripts after all the elements have been inserted into the DOM?
I am trying to instantiate bootstrap affix and a number of other other jquery plugins
didTransition
will help; see Is there an event after the template has been added to the outlet? - #2 by xcambar.
didInsertElement
when dealing with components.
http://emberjs.com/api/classes/Ember.Component.html#event_didInsertElement
There is also didRender
if you’re dealing with 1.13.0 and above:
Much better than my answer, @jasonmit .
As I understand it, when manipulating DOM nodes, didInsertElement
is better when the manipulations are on static nodes and/or root node of the component, but didRender
is better for dynamic nodes (i.e. with binding).
What do you think?