Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to ues this plugin in nuxt? #32

Closed
Chaoyingz opened this issue Mar 5, 2019 · 2 comments
Closed

how to ues this plugin in nuxt? #32

Chaoyingz opened this issue Mar 5, 2019 · 2 comments

Comments

@Chaoyingz
Copy link

No description provided.

@jerrybendy
Copy link
Owner

an... I never use this in nuxt 😔 If you know how to use it, please comment under this issue 😅

@karambafe
Copy link

Nuxt.js plugins

  1. Create file vue-touch.js in plugins folder:
import Vue from 'vue';
import Vue2TouchEvents from 'vue2-touch-events';

Vue.use(Vue2TouchEvents);
  1. Update nuxt.config.js
export default {
  plugins: [
    { src: '~/plugins/vue-touch', ssr: false },
  ],
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants