0.1.0 • Published 6 years ago

vue-back2top v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

vue-back2top

Back to top Component for Vue2

Installation

yarn add vue-back2top

Browser

Include the script file, then install the component with Vue.use(VueBack2Top); e.g.:

<script type="text/javascript" src="node_modules/vuejs/dist/vue.min.js"></script>
<script type="text/javascript" src="node_modules/vue-back2top/dist/vue-back2top.min.js"></script>
<script type="text/javascript">
  Vue.use(VueBack2Top);
</script>

Module

import VueBack2Top from "vue-back2top";

Usage

Once installed, it can be used in a template as simply as:

<vue-back2top></vue-back2top>