Meteor callback when a template has been re-rendered
问题 I currently have a template that has an {{#each}} loop within in it. I am trying to find a way to fire off a specific function whenever that {{#each}} loop has finished. Template.rendered only runs when the template has been rendered for the first time, so that doesn't work unfortunately. Is there anything out there that can do this? 回答1: This is how I would do it : Template.foo.rendered=function(){ // NEW in 0.8.3, use this.computation=Deps.autorun and // this.computation.stop() in destroyed