Difference between Template.instance() and 'this' keyword


#1

Specifically in the context of the onRendered(), onCreated(), onDestroyed() functions, is there a difference between Template.instance() and using the ‘this’ keyword in order to access the template instance?

Thanks!


#2

I don’t think there is any difference.


#3

I dont think ther eis difference, just be carefull with scoping this inside functions, autorun etc - cause this change inside them.