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