Is there any downside to attach new properties to a Blaze template instance?

Hello guys,

I don’t want to pollute global scope.
Is it a good practice to add new properties to a Blaze template instance?

Thanks

It is pretty normal to do this in the onCreated() hook, especially for ReactiveVars.

2 Likes