How I can run a method that I add to the template page? v2

When I init app with methods, they are accessible through the app.methods
How I can run a method that I add to the template page? after it’s page was loaded?
For example, run a method from a method