mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
359 B
25 lines
359 B
6 years ago
|
<script context="module">
|
||
|
export function preload(input) {
|
||
|
return output;
|
||
|
}
|
||
|
</script>
|
||
|
|
||
7 years ago
|
<script>
|
||
6 years ago
|
import { onDestroy, onMount } from 'svelte';
|
||
7 years ago
|
|
||
6 years ago
|
onMount(() => {
|
||
|
console.log('onMount');
|
||
|
});
|
||
7 years ago
|
|
||
6 years ago
|
onDestroy(() => {
|
||
|
console.log('onDestroy');
|
||
|
});
|
||
7 years ago
|
|
||
6 years ago
|
function foo() {
|
||
|
console.log('foo');
|
||
|
}
|
||
7 years ago
|
|
||
6 years ago
|
function swipe(node, callback) {
|
||
|
// TODO implement
|
||
|
}
|
||
7 years ago
|
</script>
|