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.