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 do you actually use Onsen with Vue.js and Cordova?
-
This post is deleted!
-
@LuCavallin If you are using the template mentioned in that pretty misleading guide, you just need to build it via
npm run build
in order to create thewww
folder with all the generated code fromsrc
folder. That’s the last requirement to have a Cordova project and you’ll be able to runcordova platform add android
and the like.Just in case, that template is not installing Cordova or Android Studio. You need to do it yourself. For an easier solution, have a look at Monaca CLI (the link is actually provided after you install the template).
-
@Fran-Diox Do you know if it’s possible to integrate Cordova when I run
npm run dev
such that I can test out functions provided by their API without having to compile it every time?
-
@edgegfx Not in the browser. I think the easiest way is running
npm run build:watch
and use Monaca Debugger, as explained in the link I provided in the last post. It will refresh the app automatically in your device.
-
@Fran-Diox Thanks, will do. I’m struggling to get ons.ready into my Vue project. Do you know where I would integrate that and how the code should look like?