@v4fire/client
Version:
V4Fire client core library
18 lines (14 loc) • 476 B
Markdown
# core/component/directives/hook
This module brings a directive to provide any directive hooks into a component.
This directive is extremely useful to combine with a flyweight component because it does not have API to
attach the hook listeners.
## Usage
```
< .&__class v-hook = { &
bind: (el, opts, vnode, oldVnode) => console.log(el, opts, vnode, oldVnode),
inserted: onInserted,
update: onUpdate,
componentUpdated: onComponentUpdated,
unbind: onUnbind
} .
```