@mintjamsinc/vue-hook
v1.1.0
Published
A reusable hook directive for Vue.js 2.x.
Downloads
6
Readme
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
Copyright (c) 2021 MintJams Inc.