Skip to content

mintjamsinc/vue-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.