How can I do something work after transition to some route and render complete?

@jthoburn

Thank you for your explanation.

There is a example.

Say that I need to scroll component content with using iscroll.js.

If the data of component content is explicit. use ApplicationRoute::didTransition => scheduleOnce(‘afterRender’, triggerSomethingForIscroll) It seem not working properly sometimes like you say.

use Component::didInsertElement => scheduleOnce(‘afterRender’, doIscrollFunction) It works fine.

But if the data of component content contains some asynchronous data which is from model relationships.

Is it right that the above way will not wait until asynchronous data loaded, so it will result to that iscroll get wrong height of content at the same time.

This is what I encountered.

Finally, does it exist a way to know render complete for any route transition globally?