I\'m getting a collection of records and placing them in a Template, having them rendered {{#each}}
and I want to display a loading icon until the last DOM node
I find it helpful to run a callback in the onRendered
block of the next template:
{{#each items}}
{{cool_stuff}}
{{/each}}
{{> didMyStuffLoad}}
then:
Template.didMyStuffLoad.rendered = function () {
Session.set('loading_stuff', false);
}
Everything will be loaded into the DOM before this onRendered block executes.