Trigger other function on other page templates [V.2]


I’m using componentUrl and have each javascript code and function on each template page.

how do I trigger function on page 1 from page 2 templates?

It is impossible and actually a kind of not good practice. If you need global methods you may want to add them as root methods or global functions