Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
bind dynamically added links to pushPage
Nickster last edited by
How would I bind links added to the DOM to a pushPage method?
I’m populating parts of the page dynamically, the content being populated, I’d like to bind all links in this new content to a pushPage method.
emccorson administrators last edited by
You would want to set the link’s
document.querySelector('#link').onclick = () => navigator.pushPage('some-page.html')