Open AgNm opened 7 years ago
Can anyone please help me how I can make it work in cordova app?
index.html
<test></test> <script src="js/bundle.js"></script> <script type="text/javascript" src="cordova.js"></script> <script src="js/vue.js"></script> <script src="js/vue-touch.js"></script> <script src="https://cdn.jsdelivr.net/vue.resource/0.7.0/vue-resource.min.js"></script> <script type="text/javascript" src="js/index.js"></script>
main.js
var Vue = require('vue'); var VueTouch = require('vue-touch'); var test = require('./test.vue');
Vue.use(VueTouch, {name: 'v-touch'}) new Vue({ el: 'body', components: { 'test': test } });
test.vue
Please let me know if there is anything missing?
You didn't include the template code for your test component... Are you using the <v-touch> component?
test
<v-touch>
Can anyone please help me how I can make it work in cordova app?
index.html
main.js
var Vue = require('vue'); var VueTouch = require('vue-touch'); var test = require('./test.vue');
Vue.use(VueTouch, {name: 'v-touch'}) new Vue({ el: 'body', components: { 'test': test } });
test.vue
Please let me know if there is anything missing?