Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Not working with Cordova App #88

@AgNm

Description

@AgNm

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

Swipe me!
<script> export default { data () { return { test: '' } }, methods: { onSwipeLeft (direction) { alert(direction) // May be left / right / top / bottom }, } } </script>

Please let me know if there is anything missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions