mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-30 00:46:29 +01:00
25 lines
359 B
Svelte
25 lines
359 B
Svelte
<script context="module">
|
|
export function preload(input) {
|
|
return output;
|
|
}
|
|
</script>
|
|
|
|
<script>
|
|
import { onDestroy, onMount } from 'svelte';
|
|
|
|
onMount(() => {
|
|
console.log('onMount');
|
|
});
|
|
|
|
onDestroy(() => {
|
|
console.log('onDestroy');
|
|
});
|
|
|
|
function foo() {
|
|
console.log('foo');
|
|
}
|
|
|
|
function swipe(node, callback) {
|
|
// TODO implement
|
|
}
|
|
</script> |