svelte/test/validator/samples/binding-await-catch/input.svelte

8 lines
110 B

<script>
let promise = 0;
</script>
{#await promise}
{:catch error}
<input bind:value={error} />
{/await}