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

#1

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

#2

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

2 Likes