vuejs / vue-touch

Hammer.js wrapper for Vue.js
MIT License
2.72k stars 391 forks source link

Not working with Cordova App #88

Open AgNm opened 7 years ago

AgNm commented 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?

nickforddev commented 6 years ago

You didn't include the template code for your test component... Are you using the <v-touch> component?