1.0.6 • Published 4 years ago
vue-anchor-navigate v1.0.6
vue-anchor-navigate
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