@mintjamsinc/vue-hook

    1.1.0 • Public • Published

    vue-hook

    A reusable hook directive for Vue.js 2.x.

    Installation

    npm install --save-dev @mintjamsinc/vue-hook

    Usage

    import VueHook from '@mintjamsinc/vue-hook';
    Vue.use(VueHook);
    <div v-hook="{bind: onBind, inserted: onInserted, update: onUpdate, componentUpdated: onComponentUpdated, unbind: onUnbind}">
    </div>
    export default {
      methods: {
        onBind() {},
        onInserted() {},
        onUpdate() {},
        onComponentUpdated() {},
        onUnbind() {},
      },
    }

    License

    MIT

    Copyright (c) 2021 MintJams Inc.

    Keywords

    Install

    npm i @mintjamsinc/vue-hook

    DownloadsWeekly Downloads

    1

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    3.17 kB

    Total Files

    4

    Last publish

    Collaborators

    • mintjams-bot
    • kenichif