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.
How to use Onsen JS code from a module - Plain JS App
JO last edited by
Hallo members of the community. I am testing with Onsen and i can see that the doc is using js script inside the HTML for each page inside each template. If i wanted to decouple this using plain JS ( Ecma 6 module ) and using webpack, how can i achieve this ? I have tried to install and used
import ons from “onsenui” but it is not working.
I want to be able to call the ons objects from another JS file.
NB: I am using plain js- not React or Vue.