mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-30 08:56:14 +01:00
27 lines
312 B
HTML
27 lines
312 B
HTML
<script>
|
|
export default {
|
|
oncreate() {
|
|
console.log('oncreate');
|
|
},
|
|
|
|
ondestroy() {
|
|
console.log('ondestroy');
|
|
},
|
|
|
|
methods: {
|
|
foo() {
|
|
console.log('foo');
|
|
}
|
|
},
|
|
|
|
events: {
|
|
swipe(node, callback) {
|
|
// TODO implement
|
|
}
|
|
},
|
|
|
|
preload(input) {
|
|
return output;
|
|
}
|
|
};
|
|
</script> |