mirror of https://github.com/sveltejs/svelte
7 lines
158 B
7 lines
158 B
7 years ago
|
{{#await thePromise}}
|
||
|
<p>loading...</p>
|
||
|
{{then theValue}}
|
||
|
<p>the value is {{theValue}}</p>
|
||
|
{{catch theError}}
|
||
|
<p>oh no! {{theError.message}}</p>
|
||
|
{{/await}}
|