A reusable hook directive for Vue.js 2.x.
npm install --save-dev @mintjamsinc/vue-hook
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() {},
},
}
Copyright (c) 2021 MintJams Inc.