mirror of https://github.com/sveltejs/svelte
parent
ddbbccc9e4
commit
dda9a53727
@ -0,0 +1,3 @@
|
||||
export default {
|
||||
html: `<h1>1 2</h1>`
|
||||
};
|
@ -0,0 +1,14 @@
|
||||
<script>
|
||||
let foo = 0;
|
||||
let bar;
|
||||
$: {
|
||||
bar = foo + 1;
|
||||
if (foo) {
|
||||
break $;
|
||||
}
|
||||
bar = foo + 2;
|
||||
}
|
||||
foo = 1;
|
||||
</script>
|
||||
|
||||
<h1>{foo} {bar}</h1>
|
Loading…
Reference in new issue