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

Nuxt Instructions #27

Open
lmuzquiz opened this issue Jan 17, 2021 · 1 comment
Open

Nuxt Instructions #27

lmuzquiz opened this issue Jan 17, 2021 · 1 comment

Comments

@lmuzquiz
Copy link

Can you add instructions for Nuxt? I tried to make it work for like 30 mins but couldn't

This was on my plugins folder:
Screen Shot 2021-01-16 at 22 55 10

I also registered as a client plugin within nuxt config:

Screen Shot 2021-01-16 at 22 57 40

@massmediagroup-89
Copy link

massmediagroup-89 commented Nov 26, 2021

 plugins: [
 { src:'~plugins/is-allow-body-scroll.js', mode: 'client' },
]

and on the is-allow-body-scroll.js

import Vue from 'vue'
import VBodyScrollLock from 'v-body-scroll-lock'

Vue.use(VBodyScrollLock)

This works well for me

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

2 participants