vue-anchor-navigate

1.0.6 • Public • Published

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

Package Sidebar

Install

npm i vue-anchor-navigate

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

17.9 kB

Total Files

23

Last publish

Collaborators

  • booter.studio