|
<Foo>
|
|
{{#await thePromise}}
|
|
<p>loading...</p>
|
|
{{then theValue}}
|
|
<p>the value is {{theValue}}</p>
|
|
{{catch theError}}
|
|
<p>oh no! {{theError.message}}</p>
|
|
{{/await}}
|
|
</Foo>
|
|
|
|
<script>
|
|
import Foo from './Foo.html';
|
|
|
|
export default {
|
|
components: { Foo }
|
|
};
|
|
</script> |