I assume your code looks something like this, but let me know if I am wrong:
<template name="list"> {{#each items}} {{> item}} {{/each}} </template>
The {{#each ...}} works with the cursor object to respond to data changes on the cursor. So, in your case, if this data comes from the server (for example, a subscription), during Meteor.startup the data may not be loaded yet. Therefore, initially your list will be empty. Then, when data is output from the wire, a new item template will be displayed for each data item . If you want to drag a specific item, you can put this jQuery code in the Template.item.rendered callback.
Does it help?
source share