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.
ons.getPageScript() not Recognized
-
As mention in https://onsen.io/v2/guide/lifecycle.html , i try place hook to a template
<script> ons.getPageScript().onInit = function() { }; </script>
but i got error “TypeError: ons.getPageScript is not a function”.
I use version 2.6.0 . How to fix this ?
Thanks you.
-
@Nanang-Arema Are you using it like this?
-
Thanks for quick replay. It work now.
Btw onsenui is fantastic ui for mobile apps, even compare to premium template that i already buy, imo onsenui more powerfull and more beautiful.
Thanks for make this ui.