mirror of https://github.com/sveltejs/svelte
parent
93f7ecca1d
commit
7ec1bdb712
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
let promise;
|
||||
</script>
|
||||
|
||||
{#await promise}
|
||||
<p>Loading</p>
|
||||
{:then data}
|
||||
<p>Data: {data}</p>
|
||||
{/await}
|
@ -0,0 +1 @@
|
||||
[]
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
let promise;
|
||||
</script>
|
||||
|
||||
{#await promise then data}
|
||||
<p>Data: {data}</p>
|
||||
{/await}
|
@ -0,0 +1 @@
|
||||
[]
|
Loading…
Reference in new issue