1.0.6 • Published 4 years ago

vue-anchor-navigate v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

vue-anchor-navigate

Vue 2.x npm npm-downloads license

Installing

This package is available on npm.

Using npm:

npm install --save vue-anchor-navigate

Using yarn:

yarn add vue-anchor-navigate

Nuxt.js

Create plugins/vue-anchor-navigate.client.js

import Vue from 'vue'
import vieAnchorNavigate from 'vue-anchor-navigate'

Vue.use(vieAnchorNavigate)

Then add to plugins array in your nuxt.config.js

plugins: [
    '~/plugins/vendor/vue-anchor-navigate.client.js'
  ],

Usage

Just add v-anchor directive and it's id to the element, which you would like to use as anchor

<div id="about" v-anchor>
    Hi. I'm the anchor.
</div>

License

MIT

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago