Template render callback

Posted by Zsolt Németh on Stack Overflow See other posts from Stack Overflow or by Zsolt Németh
Published on 2012-11-17T22:56:19Z Indexed on 2012/11/17 22:59 UTC
Read the original article Hit count: 258

Filed under:

I'm using Handlebar's {{#each}} to render out my collection to the DOM. After each item is rendered, I want to run a script on these elements. I'm trying to find a callabck function wich fires only once, when the whole render is completed. Meteor's Template.rendered() run's each time a new item is inserted, so it runs as many times as much item I have in my collection. Is there any solution for this?

Thanks a lot!

© Stack Overflow or respective owner

Related posts about meteor