vue-back2top

0.1.0 • Public • Published

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>

/vue-back2top/

    Package Sidebar

    Install

    npm i vue-back2top

    Weekly Downloads

    2

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    229 kB

    Total Files

    11

    Last publish

    Collaborators

    • lucduong