How do I make settings in the 'vue-smooth-scroll' nuxt.js plugin?

  • 0
    Installed the plugin ' vue-smooth-scroll ' into my project.

    Plugin installed as written in docks (Vue Plugins, ES6 plugins)
    Created a file in the plugins folder, added
    to the file
    import Vue from 'vue'
    import vueSmoothScroll from 'vue-smooth-scroll'

    Tell me if it is possible to make settings in the plugin file so that every time you do not write them in
    <a href="#div-id" v-smooth-scroll="{ duration: 1000, offset: -50 }">Anchor</a>

    Something like that.
    import Vue from 'vue'
    import vueSmoothScroll from 'vue-smooth-scroll'
    Vue.use(vueSmoothScroll, {
        duration: 1000, 
        offset: -50 
    JavaScript Joshua Ellison, Nov 26, 2020

  • 1 Answers
  • 0
    Why not new version ?

    In the new version, this is all done the way you need it
    Lydia Melton

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!