mirror of https://github.com/sveltejs/svelte
15 lines
196 B
15 lines
196 B
8 years ago
|
<script>
|
||
8 years ago
|
import counter from './counter.js';
|
||
|
|
||
6 years ago
|
export let x;
|
||
|
export let y;
|
||
|
|
||
|
function myHelper(value) {
|
||
|
counter.count += 1;
|
||
|
return value;
|
||
|
}
|
||
8 years ago
|
</script>
|
||
6 years ago
|
|
||
|
<p>{x}</p>
|
||
|
<p>{@html myHelper(y)}</p>
|