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.
Listen to Cordova events from VueJS
-
Hi guys,
i’m trying to build a test app with Onsen+VueJS+Cordova.Let’s assume I would like to show, in a <span> bound to a VueJS variable, (<span v-bind=“test”></span>) the battery level.
I’ve installed the cordova-plugin-battery-status plugin, but how can I listen for batterystatus event triggered by cordova in the component template ?
-
noone ?
-
You should be able to just use
v-on:batterystatus
, right? I think that’s the case but I haven’t checked.
-
@emccorson said in Listen to Cordova events from VueJS:
You should be able to just use
v-on:batterystatus
, right? I think that’s the case but I haven’t checked.thank you, i’ll try