Appmate templates are rendered by the browser right after the page was loaded from the server. They also automatically update as soon as the underlying data changes. It is thereby not possible to just add a handler once the site is loaded using
$('.my-button').click(...). We need to add the event handler each time an Appmate snippet gets rendered. The Appmate toolkit comes with a little helper that will make this task easy as. The event handlers for our default templates are set in
snippets/appmate-app-name.liquid. You can either change them or add your own.
Event handlers are defined within the scope of each Appmate app.
- Wishlist King uses