mirror of https://github.com/sveltejs/svelte
commit
2537db90be
@ -0,0 +1,17 @@
|
||||
{{#await promise}}
|
||||
<p>Loading</p>
|
||||
{{then data}}
|
||||
<Component :data />
|
||||
{{catch err}}
|
||||
<p>Error: {{err}}</p>
|
||||
{{/await}}
|
||||
|
||||
<script>
|
||||
import Component from './Component.html';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Component
|
||||
}
|
||||
};
|
||||
</script>
|
@ -0,0 +1 @@
|
||||
[]
|
Loading…
Reference in new issue