Hello,
Do you know if there is a way to get a unique instance Id for each template in blaze ?
I need this for the DOM in case i use the template twice on the page to avoid conflicts.
Actually I do :
onCreated : this.instanceId = Random.id()
helpers :
instanceId: function() {
return Template.instance().instanceId;
},
I was wondering if the blaze template instance would have an internal variable directly accessible (both in the html and in the js).
Thanks