2017-02-20 16:04:50 -07:00

24 lines
416 B
Plaintext

import hooks from '../../hooks';
class {
onCreate() {
hooks.record('foo', 'create', arguments, this);
}
onRender(){
hooks.record('foo', 'render', arguments, this);
}
onMount(){
hooks.record('foo', 'mount', arguments, this);
}
onUpdate(){
hooks.record('foo', 'update', arguments, this);
}
}
<div.foo>
Hello <span.name>${input.name}</span>!
</div>