Detect when template.dynamic changes


#1

Is there any way to detect when the {{>Template.dynamic template=content}} changes and then run some functions ?


#2

Do you want to run a callback when the template changes (different template) or if the template gets updated (stays the same, template data changes)?

If you want to run a callback (function) when the template changes, just simply include it in the Template.onRendered/onCreated callback.